Method ADT.Struct()->decode()

class ADT.Struct

Method decode

void decode(string|Stdio.InputStream data, mixed ... state)

Description

Decodes data according to the struct and populates the struct variables. The data can either be a file object or a string.

Parameter state

Extra arguments that may be used by custom Item decoders. They are passed straight to Item()->decode() and not handled in any other way.

See also

decode()