[C#]
bool SaveToBuffer(ref byte[] Buffer, ref int Size);
bool SaveToBuffer(ref byte[] Buffer, int StartIndex, ref int Size);
[VB.NET]
Function SaveToBuffer(ByRef Buffer As Byte(), ByRef Size As Integer) As Boolean
Function SaveToBuffer(ByRef Buffer As Byte(), ByVal StartIndex As Integer, ByRef Size As Integer) As Boolean