C# Class RampUp.Buffers.ByteSlice

A common denominator for byte array and ByteChunk.
Datei anzeigen Open project: Scooletz/RampUp Class Usage Examples

Public Properties

Property Type Description
Count int

Public Methods

Method Description
ByteSlice ( ByteChunk chunk )
ByteSlice ( byte buffer, int offset, int count )
CopyFrom ( int alreadyCopied, byte segmentBuffer, int indexInSegment, int bytesToRead ) : void
CopyTo ( byte segmentBuffer, int currentSegmentIndex, int spaceToWrite, int additionalOffset ) : void

Method Details

ByteSlice() public method

public ByteSlice ( ByteChunk chunk )
chunk ByteChunk

ByteSlice() public method

public ByteSlice ( byte buffer, int offset, int count )
buffer byte
offset int
count int

CopyFrom() public method

public CopyFrom ( int alreadyCopied, byte segmentBuffer, int indexInSegment, int bytesToRead ) : void
alreadyCopied int
segmentBuffer byte
indexInSegment int
bytesToRead int
return void

CopyTo() public method

public CopyTo ( byte segmentBuffer, int currentSegmentIndex, int spaceToWrite, int additionalOffset ) : void
segmentBuffer byte
currentSegmentIndex int
spaceToWrite int
additionalOffset int
return void

Property Details

Count public_oe property

public int Count
return int