Peer WriteBytes Method sP2P NAT Traversal and peer-to-peer networking API
sP2P NAT Traversal and peer-to-peer networking API
Write peer object serialisation to byte array buffer

Namespace: sP2PLib
Assembly: sP2PLib (in sP2PLib.dll) Version: 1.6.0.0 (1.6.0.0)
Syntax

Public Function WriteBytes ( _
	ByRef buffer As Byte(), _
	Optional startIndex As Integer = 0, _
	Optional serializeCustomProperties As Boolean = True _
) As Integer

Parameters

buffer
Type:  System Byte  
Buffer to write to. If null it will be initialised with length to store peer serialisation
startIndex (Optional)
Type: System Int32
Starting index from which to begin writing
serializeCustomProperties (Optional)
Type: System Boolean
Indicates whether custom properties serialisation should be done

Return Value

Number or bytes written
See Also