Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
haXe 2 Beginner's Guide

You're reading from  haXe 2 Beginner's Guide

Product type Book
Published in Jul 2011
Publisher
ISBN-13 9781849512565
Pages 288 pages
Edition 1st Edition
Languages

Table of Contents (21) Chapters

haxe 2
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting to know haXe 2. Basic Syntax and Branching 3. Being Cross-platform with haXe 4. Understanding Types 5. The Dynamic Type and Properties 6. Using and Writing Interfaces, Typedefs, and Enums 7. Communication Between haXe Programs 8. Accessing Databases 9. Templating 10. Interfacing with the Target Platform 11. A Dynamic Website Using JavaScript 12. Creating a Game with haXe and Flash Pop Quiz Answers Index

The haXe serializer


haXe has its own serializing system. This serializing system is the one used by haXe remoting therefore, before continuing with haXe remoting, it is important to understand how the haXe serializer works.

Usefulness

The haXe serializer is used by the haXe remoting system, but you can also use it on your own.

Doing so will allow you to get a string representation of almost any value. This way, you can, for example, store it on disk, in a database, or send it over any network connection.

Possibilities

The haXe serializer allows you to serialize almost any value, but still there are some things that you should know about how some values are serialized.

Basically, you should know that you can serialize:

  • Ints

  • Floats

  • Bools

  • Strings

  • nulls

  • haXe.io.Bytes

  • Arrays

  • List

  • Hash

  • Class instances

  • Enum instances

  • Anonymous objects

  • Exceptions

Now, let's see what you need to know about how these are serialized.

Class instances

When you serialize a class instance, all of its fields are serialized and it also stores...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime}