SerializationWriter.ToArray Method
Returns a byte[] containing all of the serialized data.
The current implementation has the data in 3 sections:
1) A 4 byte Int32 giving the offset to the 3rd section.
2) The main serialized data.
3) The serialized string tokenization lists and object
tokenization lists.
Only call this method once all of the data has been serialized.
This method appends all of the tokenized data (string and object)
to the end of the stream and ensures that the first four bytes
reflect the offset of the tokenized data so that it can be
deserialized first.
This is the reason for requiring a rewindable stream.
Future implementations may also allow the serialized data to be
accessed via 2 byte[] arrays. This would remove the requirement
for a rewindable stream opening the possibility of streaming the
serialized data directly over the network allowing simultaneous
of partially simultaneous deserialization.
Namespace: SobekCM.Core.MemoryMgmt Assembly: SobekCM_Core (in SobekCM_Core.dll) Version: 4.10.0.0 (4.10.0.0) Syntax
Return ValueType: array<Byte>[]()[][]A byte[] containing all serialized data. See AlsoVersion 4.10.0 ( last generated Monday, March 7, 2016 ) |