BinaryStreamPointerBaseGetWritePointer Method

Gets a pointer to the specified write position in the binary stream that can be used for writing up the provided length and reserving space for writing the data. Current position does not get advanced after calling this function.

Definition

Namespace: SnapDB.IO
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public byte* GetWritePointer(
	long position,
	int length
)

Parameters

position  Int64
The position in the binary stream to obtain the pointer for.
length  Int32
The number of bytes valid for writing.

Return Value

Byte*
A pointer to the specified write position in the binary stream.

Exceptions

ExceptionThrown if the provided length is greater than the available remaining space in the stream.

See Also