We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Classes which implement the SerializableInterface expose methods related to serialization.
SerializableInterface::getBuffer() - This method returns the binary representation of the class as a Buffer.
SerializableInterface::getBuffer()
SerializableInterface::getHex() - Returns the serialized form, but in hex encoding.
SerializableInterface::getHex()
SerializableInterface::getInt() - Where the number is an unsigned integer, getInt can convert the number to a big-num decimal.
SerializableInterface::getInt()
SerializableInterface::getBinary() - Returns the object serialized, as a byte string.
SerializableInterface::getBinary()
Objects which implement SerializableInterface usually have a serializer also capable of parsing.
Serializers expose three main methods:
fromParser(Parser $parser) - attempt to extract the structure from the provided parser
fromParser(Parser $parser)
parse() - attempt to parse the data: allows hex, or Buffer's
parse()
serialize($object) - converts the object into a Buffer
serialize($object)