Serialised¶
This represents serialised data. How it can be used depends on the other capabilities a caller holds.
Constructors¶
create¶
A caller with SerialiseAuth can create serialised data from any object.
Parameters¶
- auth: SerialiseAuth val
- data: Any box
Returns¶
- Serialised ref^ ?
input¶
A caller with InputSerialisedAuth can create serialised data from any arbitrary set of bytes. It is the caller's responsibility to ensure that the data is in fact well-formed serialised data. This is currently the most dangerous method, as there is currently no way to check validity at runtime.
Parameters¶
- auth: InputSerialisedAuth val
- data: Array[U8 val] val
Returns¶
- Serialised ref^
Public Functions¶
apply¶
A caller with DeserialiseAuth can create an object graph from serialised data.
Parameters¶
- auth: DeserialiseAuth val
Returns¶
- Any iso^ ?
output¶
A caller with OutputSerialisedAuth can gain access to the underlying bytes that contain the serialised data. This can be used to write those bytes to, for example, a file or socket.
Parameters¶
- auth: OutputSerialisedAuth val