Table of Contents

Class InOctetStream

Namespace
Coherence.Brook.Octet
Assembly
Coherence.Brook.dll
public class InOctetStream : IInOctetStream, IOctetReader
Inheritance
InOctetStream
Implements
Extension Methods

Constructors

InOctetStream(byte[])

public InOctetStream(byte[] data)

Parameters

data byte[]

InOctetStream(int)

protected InOctetStream(int capacity)

Parameters

capacity int

Properties

Length

public uint Length { get; }

Property Value

uint

Position

public uint Position { get; }

Property Value

uint

RemainingOctetCount

public int RemainingOctetCount { get; }

Property Value

int

Methods

GetBuffer()

public ReadOnlySpan<byte> GetBuffer()

Returns

ReadOnlySpan<byte>

ReadOctet()

public byte ReadOctet()

Returns

byte

ReadOctets(int)

public ReadOnlySpan<byte> ReadOctets(int octetCount)

Parameters

octetCount int

Returns

ReadOnlySpan<byte>

ReadUint16()

public ushort ReadUint16()

Returns

ushort

ReadUint32()

public uint ReadUint32()

Returns

uint

ReadUint64()

public ulong ReadUint64()

Returns

ulong

ReadUint8()

public byte ReadUint8()

Returns

byte

ResetAndWrite(ReadOnlySpan<byte>)

protected void ResetAndWrite(ReadOnlySpan<byte> data)

Parameters

data ReadOnlySpan<byte>

ToString()

public override string ToString()

Returns

string