[This is preliminary documentation and is subject to change.]
Provides utility methods for working with byte arrays and pointers.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)
Syntax
| C# |
public static class BufferUtil
Members
| All Members | Methods |
| Member | Description | |
|---|---|---|
| MemCmp(array<Byte>[]()[][], Int32, String) | Checks whether the sequence of bytes in data at the given offset matches the sequence of ASCII characters in value.
Basically, checks whether the byte array contains the string at this offset. | |
| MemCpy(Byte*, Byte*, Int32) | Copies contents of src buffer to dest buffer, as efficiently as possible. | |
| MemSet(array<Byte>[]()[][], Byte) | Fills the entire given byte array with a specified byte value, as efficiently as possible. | |
| MemSet(array<Byte>[]()[][], Byte, Int32, Int32) | Fills a section of the given byte array with a specified byte value, as efficiently as possible. | |
| ReadAll(Stream, array<Byte>[]()[][]) | Reads a number of bytes from source that matches the length of destination byte array. |