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.
Namespace: SnapDB.IOAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public byte* GetWritePointer(
long position,
int length
)
Visual Basic does not support APIs that consume or return unsafe types.
public:
unsigned char* GetWritePointer(
long long position,
int length
)
JavaScript does not support APIs that consume or return unsafe types.
- position Int64
- The position in the binary stream to obtain the pointer for.
- length Int32
- The number of bytes valid for writing.
Byte*
A pointer to the specified write position in the binary stream.
| Exception | Thrown if the provided length is greater than the available remaining space in the stream. |