ByteMemory Type
A view over bytes. May be backed by managed or unmanaged memory, or memory mapped file.
Instance members
Instance member |
Description
|
|
|
|
Get a stream representation of the backing memory. Disposing this will not free up any of the backing memory. Stream cannot be written to.
|
|
Get a stream representation of the backing memory. Disposing this will not free up any of the backing memory.
|
Full Usage:
this.Copy
Parameters:
int
dest : byte[]
destOffset : int
count : int
Modifiers: abstract |
|
|
|
Full Usage:
this[arg1]
Parameters:
int
Returns: byte
Modifiers: abstract |
|
Full Usage:
this.Length
Returns: int
Modifiers: abstract |
|
Full Usage:
this.ReadAllBytes
Returns: byte[]
Modifiers: abstract |
|
Full Usage:
this.ReadBytes
Parameters:
int
count : int
Returns: byte[]
Modifiers: abstract |
|
Full Usage:
this.ReadInt32
Parameters:
int
Returns: int
Modifiers: abstract |
|
Full Usage:
this.ReadUInt16
Parameters:
int
Returns: uint16
Modifiers: abstract |
|
Full Usage:
this.ReadUtf8String
Parameters:
int
count : int
Returns: string
Modifiers: abstract |
|
|
|
Full Usage:
this.ToArray
Returns: byte[]
Modifiers: abstract |
|
Static members
Static member |
Description
|
|
Empty byte memory.
|
|
|
Full Usage:
ByteMemory.FromArray(bytes, offset, length)
Parameters:
byte[]
offset : int
length : int
Returns: ByteMemory
|
Creates a ByteMemory object that is backed by a byte array with the specified offset and length.
|
Full Usage:
ByteMemory.FromMemoryMappedFile(arg1)
Parameters:
MemoryMappedFile
Returns: ByteMemory
|
Create a ByteMemory object that has a backing memory mapped file.
|
Full Usage:
ByteMemory.FromUnsafePointer(addr, length, holder)
Parameters:
nativeint
length : int
holder : obj
Returns: ByteMemory
|
Creates a ByteMemory object that is backed by a raw pointer. Use with care.
|