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

Defines a snapshot of a AK.F1.Timing.Server.IO.ByteBuffer.
Show file Open project: simoneb/ak-f1-timing Class Usage Examples

Public Methods

Method Description
ByteBufferSnapshot ( byte buffer, int offset, int count ) : System

Initialsies a new instance of the AK.F1.Timing.Server.IO.ByteBufferSnapshot class and specifies the buffer, offset and count.

CopyTo ( int srcOffset, byte dst, int dstOffset, int count ) : void

Copies a specified number of bytes from this snapshot starting at a particular offset to a destination array starting at a particular offset.

Method Details

ByteBufferSnapshot() public method

Initialsies a new instance of the AK.F1.Timing.Server.IO.ByteBufferSnapshot class and specifies the buffer, offset and count.
/// Thrown when is . /// /// Thrown when /// /// /// is negative or greater than the length of /// /// /// is negative or greater than the length of /// given /// /// ///
public ByteBufferSnapshot ( byte buffer, int offset, int count ) : System
buffer byte The buffer.
offset int The buffer offset.
count int The buffer length.
return System

CopyTo() public method

Copies a specified number of bytes from this snapshot starting at a particular offset to a destination array starting at a particular offset.
/// Thrown when is . /// /// Thrown when , or /// is not valid. ///
public CopyTo ( int srcOffset, byte dst, int dstOffset, int count ) : void
srcOffset int The zero-based byte offset.
dst byte The destination buffer.
dstOffset int The zero-based offset into .
count int The number of bytes to copy.
return void