flex3 - How are AMF3 string tables built? -


I am working on AMF3 format decoding. I have used inline objects and variables, although I am having problems with string reference. Anyone can tell how the string reference table has been created?

Currently, I have:

  var object: object = new object (); Object.s1 = "abc"; Object.s2 = object.s1; Object.s0 = "111"; ByteBuffer.writeObject (object);   

Then I type it in the byteBuffer and finally in a file. I'm thinking how string conventions are formed?

Flex String creates a table for references. As soon as the Flex encounters a string in an object, it does the following:

  • If the string is new:
    • Add strings to the table and increase the reference number < / Li>
    • Otherwise
      • Add a reference to the string.

Comments