C# Класс AK.F1.Timing.Server.IO.ByteBuffer

Provides an append only byte buffer that supports the efficient creation of snapshots. This class cannot be inherited.
Показать файл Открыть проект

Открытые методы

Метод Описание
Append ( byte buffer ) : void

Appends the specified buffer to this buffer.

ByteBuffer ( int initialCapacity ) : System

Initialises new instance of the AK.F1.Timing.Server.IO.ByteBuffer class and specifies the initial buffer capacity.

CreateSnapshot ( ) : ByteBufferSnapshot

Creates a snapshot of this buffer.

Приватные методы

Метод Описание
EnsureCapacity ( int count ) : void
ResizeBuffer ( int newSize ) : void

Описание методов

Append() публичный метод

Appends the specified buffer to this buffer.
/// Thrown when this instance has been disposed of. /// /// Thrown when the buffer is unable to be appended. ///
public Append ( byte buffer ) : void
buffer byte The buffer to append.
Результат void

ByteBuffer() публичный метод

Initialises new instance of the AK.F1.Timing.Server.IO.ByteBuffer class and specifies the initial buffer capacity.
/// Thrown when is not positive. ///
public ByteBuffer ( int initialCapacity ) : System
initialCapacity int The initial buffer cpacity.
Результат System

CreateSnapshot() публичный метод

Creates a snapshot of this buffer.
public CreateSnapshot ( ) : ByteBufferSnapshot
Результат ByteBufferSnapshot