PHPSerializer.serialize

Appends a named item to the output buffer. Usually item is taken as it is without any conversion.

Ulongs are converted using the DPD algorithym which is a compression algorithym for BCD

Note: the main method to use from the outside is the first serialize() method above. This method is for the use of the StructSerializer.

  1. void serialize(ubyte[] output, T item)
  2. void serialize(ubyte[] output, T item, char[] name)
    class PHPSerializer
    void
    serialize
    (
    T
    )
    (
    ref ubyte[] output
    ,
    ref T item
    ,
    char[] name
    )

Parameters

T

type of item

output ubyte[]

string to serialize struct data to

item T

item to append

name char[]

name of item

Meta