AMF3 字符串表是如何构建的?
我正在研究 AMF3 格式解码。我使用了内联对象和变量,但是我在字符串引用方面遇到了问题。谁能告诉我字符串引用表是如何构建的吗?
目前,我有:
var object:Object = new Object();
object.s1 = "abc";
object.s2 = object.s1;
object.s0 = "111";
byteBuffer.writeObject(object);
然后我将其写入 byteBuffer,最后写入文件。我想知道字符串引用是如何构建的?
I am working on AMF3 format decoding. I have used inline objects and variables, however I am having problem with the String reference. Can anyone tell how String reference table is built?
Currently, I have:
var object:Object = new Object();
object.s1 = "abc";
object.s2 = object.s1;
object.s0 = "111";
byteBuffer.writeObject(object);
then I write this to a byteBuffer
and finally to a file. I am wondering how String references are built?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Flex 构建了一个字符串引用表。一旦 Flex 在对象中遇到字符串,它就会执行以下操作:
Flex builds a table for string references. As soon as Flex encounters a string in an object, it does the following: