PersistCodec implement of PersistCodec
The class can be used to .encode
values and objects into a String or .decode
values and objects from a String.
It's a class initially used in some Motion Twin projects ; that was written
in Motion Types a programing language developped by Nicolas Cannasse
at Motion Twin in 2004-2005.
Note
If you are looking for how to use it, you can look at some examples in the unit tests.
new PersistCodec()
public next_field_bits: Int
public nfields_bits: Int
public obfu_mode: Bool
public fieldtbl: Array
public nfields: Int
public fields: Object
public result: Mixed
public cache: Array
public fast: Bool
public crc: Bool
public bc: BitCodec
public encode_array(a: Array): void
public decode_array(): Array
public decode_array_item(a: Array): Bool
public decode_array_fast(): Array
public encode_string(s: String): void
public decode_string(): String
public encode_object(o: Object): void
public decode_object(): Object
public decode_object_fast(): Object
public encode_object_field(k: String, d: Mixed): void
public decode_object_field(o: Mixed): Bool
public encode_int(o: Int): void
public decode_int(): Int
public encode_float(o: Float): void
public decode_float(): Float
public do_encode(o: Mixed): Bool
public do_decode(): Mixed
public encodeInit(o: Mixed): void
public decodeInit(data: String): void
public encodeLoop(): Bool
public decodeLoop(): Bool
public encodeEnd(): String
public decodeEnd(): Mixed
public encode(o: Mixed): String
public decode(data: String): Mixed
public progress(): Float