Skip to content

Mirror::SimpleWeb::ArrayBuffer

Inherits from IDisposable

Public Functions

Name
void SetReleasesRequired(int required)
How many times release needs to be called before buffer is returned to pool
ArrayBuffer(IBufferOwner owner, int size)
void Release()
void Dispose()
void CopyTo(byte [] target, int offset)
void CopyFrom(ArraySegment< byte > segment)
void CopyFrom(byte [] source, int offset, int length)
void CopyFrom(IntPtr bufferPtr, int length)
ArraySegment< byte > ToSegment()

Public Attributes

Name
readonly byte [] array

Public Functions Documentation

function SetReleasesRequired

inline void SetReleasesRequired(
    int required
)

How many times release needs to be called before buffer is returned to pool

This allows the buffer to be used in multiple places at the same time

function ArrayBuffer

inline ArrayBuffer(
    IBufferOwner owner,
    int size
)

function Release

inline void Release()

function Dispose

inline void Dispose()

function CopyTo

inline void CopyTo(
    byte [] target,
    int offset
)

function CopyFrom

inline void CopyFrom(
    ArraySegment< byte > segment
)

function CopyFrom

inline void CopyFrom(
    byte [] source,
    int offset,
    int length
)

function CopyFrom

inline void CopyFrom(
    IntPtr bufferPtr,
    int length
)

function ToSegment

inline ArraySegment< byte > ToSegment()

Public Attributes Documentation

variable array

readonly byte [] array;

Updated on 21 January 2021 at 20:42:57 UTC