C# Class AK.F1.Timing.Server.IO.ByteBuffer

Provides an append only byte buffer that supports the efficient creation of snapshots. This class cannot be inherited.
Afficher le fichier Open project: simoneb/ak-f1-timing

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
EnsureCapacity ( int count ) : void
ResizeBuffer ( int newSize ) : void

Method Details

Append() public méthode

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.
Résultat void

ByteBuffer() public méthode

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.
Résultat System

CreateSnapshot() public méthode

Creates a snapshot of this buffer.
public CreateSnapshot ( ) : ByteBufferSnapshot
Résultat ByteBufferSnapshot