Table of Contents

Class OutOctetStream

Namespace
Coherence.Brook.Octet
Assembly
Coherence.Brook.dll
public class OutOctetStream : IOutOctetStream, IOctetWriter
Inheritance
OutOctetStream
Implements

Constructors

OutOctetStream(byte[])

public OutOctetStream(byte[] buffer)

Parameters

buffer byte[]

OutOctetStream(int)

public OutOctetStream(int capacity = 0)

Parameters

capacity int

Properties

Capacity

public uint Capacity { get; }

Property Value

uint

Octets

public ReadOnlySpan<byte> Octets { get; }

Property Value

ReadOnlySpan<byte>

Position

public uint Position { get; }

Property Value

uint

RemainingOctetCount

public uint RemainingOctetCount { get; }

Property Value

uint

Methods

Close()

public ArraySegment<byte> Close()

Returns

ArraySegment<byte>

Reset()

protected void Reset()

Seek(uint)

public void Seek(uint newPosition)

Parameters

newPosition uint

WriteOctet(byte)

public void WriteOctet(byte v)

Parameters

v byte

WriteOctets(byte[])

public void WriteOctets(byte[] data)

Parameters

data byte[]

WriteOctets(ReadOnlySpan<byte>)

public void WriteOctets(ReadOnlySpan<byte> data)

Parameters

data ReadOnlySpan<byte>

WriteUint16(ushort)

public void WriteUint16(ushort data)

Parameters

data ushort

WriteUint32(uint)

public void WriteUint32(uint data)

Parameters

data uint

WriteUint64(ulong)

public void WriteUint64(ulong data)

Parameters

data ulong

WriteUint8(byte)

public void WriteUint8(byte data)

Parameters

data byte