[This is preliminary documentation and is subject to change.]
Attempts to serialize the given value into the given
buffer with limit bytes remaining.
Namespace: Microsoft.Research.Naiad.Serialization
Assembly: Microsoft.Research.Naiad (in Microsoft.Research.Naiad.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
C#
int TrySerialize( TElement value, byte* buffer, int limit )
Parameters
- value
- Type: TElement
The value to be serialized. - buffer
- Type: SystemByte*
The target buffer. - limit
- Type: SystemInt32
The number of bytes remaining in buffer.
Return Value
Type: Int32If serialization was successful, returns the number of bytes written. If serialization was unsuccessful, returns a value less than or equal to 0.
See Also