You are here: Recent News » Documentation Pages List » AMF - ActionScript Message Format » envelopes » Local Shared Object envelope

 

Local Shared Object envelope

A Local Shared Object file (.SOL) consists of a short header, and then a set of name:value pairs comprising that object. All data in the Local Shared Object file format is AMF - ActionScript Message Format-based, and thus big endian (unlike SWF).

Format

See this table :

Field Data Type Example Description
Version? byte[2] “\x00\xbf” Unknown
Length uint32_be “\x00\x00\x00\x25” (37) Length of the *rest* of the .SOL file (filesize - 6)
Signature? byte[10] “TCSO\x00\x04\x00\x00\x00\x00” Unknown
Root Object Name UTF-8 string “\x00\x06my_sol” (”my_sol”) Name of the root object (uint16_be length prefixed UTF-8)
Padding? byte[4] “\x00\x00\x00\x00” Unknown

... and then name:value pairs until the end of file, as such:

Field Data Type Example Description
Name UTF-8 string “\x00\x04name” (”name”) Name of the property
Value AMF - ActionScript Message Format “\x02\x00\x05value” (”value”) AMF - ActionScript Message Format value with type code
Padding byte “\x00” NULL byte

documentation/amf/envelopes/sharedobject.txt · Last modified: 2007/02/20 05:02 by niko