Divooka Reference

Output Buffer

29 nodes

On this page 29

Make Output Buffer

Function

Creates a new immutable constructive byte array.

Overload 1 of 2

Signature
ImmutableConstructiveByteArray() -> Output Buffer
ImmutableConstructiveByteArray ImmutableConstructiveByteArray()

Returns

resultOutput Buffer

Overload 2 of 2

Signature
ImmutableConstructiveByteArray -> Output Buffer
    endianness: Byte Array Endianness
    stringEncoding: Encoding
ImmutableConstructiveByteArray ImmutableConstructiveByteArray(
    ByteArrayEndianness endianness,
    Encoding stringEncoding)

Parameters

nametypedefaultdescription
endiannessByte Array Endianness—
stringEncodingEncoding—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Clear

Function

Returns an empty buffer using the same settings.

Signature
Clear(Output Buffer: Output Buffer) -> Output Buffer
ImmutableConstructiveByteArray Clear(ImmutableConstructiveByteArray Output Buffer)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Equals

Function

Overload 1 of 2

Signature
Equals -> Truth
    Output Buffer: Output Buffer
    other: Output Buffer
bool Equals(
    ImmutableConstructiveByteArray Output Buffer,
    ImmutableConstructiveByteArray other)

Determines whether this object contains the same bytes as another immutable constructive byte array.

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
otherOutput Buffer—

Returns

resultTruth

Overload 2 of 2

Signature
Equals(Output Buffer: Output Buffer, obj: Any) -> Truth
bool Equals(
    ImmutableConstructiveByteArray Output Buffer,
    object obj)

Determines whether this object contains the same bytes as another object.

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
objAny—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Endianness

Function

Gets the byte order used by numeric write operations.

Signature
Endianness(Output Buffer: Output Buffer) -> Byte Array Endianness
ByteArrayEndianness Endianness(ImmutableConstructiveByteArray Output Buffer)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—

Returns

resultByte Array Endianness
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Is Empty

Function

Gets whether this buffer contains no bytes.

Signature
IsEmpty(Output Buffer: Output Buffer) -> Truth
bool IsEmpty(ImmutableConstructiveByteArray Output Buffer)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Length

Function

Gets the number of bytes currently written.

Signature
Length(Output Buffer: Output Buffer) -> Integer
int Length(ImmutableConstructiveByteArray Output Buffer)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

String Encoding

Function

Gets the encoding used by string write operations.

Signature
StringEncoding(Output Buffer: Output Buffer) -> Encoding
Encoding StringEncoding(ImmutableConstructiveByteArray Output Buffer)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—

Returns

resultEncoding
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Get Hash Code

Function

Returns a hash code based on the current bytes.

Signature
GetHashCode(Output Buffer: Output Buffer) -> Integer
int GetHashCode(ImmutableConstructiveByteArray Output Buffer)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Save

Function

Saves the current bytes to a file.

Signature
Save(Output Buffer: Output Buffer, path: Text) -> Output Buffer
ImmutableConstructiveByteArray Save(
    ImmutableConstructiveByteArray Output Buffer,
    string path)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
pathText—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

To Array

Function

Returns a copy of the current bytes.

Signature
ToArray(Output Buffer: Output Buffer) -> Byte Array
byte[] ToArray(ImmutableConstructiveByteArray Output Buffer)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—

Returns

resultByte Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

To String

Function

Returns a hexadecimal preview of the current bytes.

Signature
ToString(Output Buffer: Output Buffer) -> Text
string ToString(ImmutableConstructiveByteArray Output Buffer)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

With Endianness

Function

Returns a copy with a different numeric byte order.

Signature
WithEndianness -> Output Buffer
    Output Buffer: Output Buffer
    endianness: Byte Array Endianness
ImmutableConstructiveByteArray WithEndianness(
    ImmutableConstructiveByteArray Output Buffer,
    ByteArrayEndianness endianness)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
endiannessByte Array Endianness—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

With String Encoding

Function

Returns a copy with a different string encoding.

Signature
WithStringEncoding -> Output Buffer
    Output Buffer: Output Buffer
    encoding: Encoding
ImmutableConstructiveByteArray WithStringEncoding(
    ImmutableConstructiveByteArray Output Buffer,
    Encoding encoding)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
encodingEncoding—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write Bool

Function

Writes a Boolean as one byte.

Signature
WriteBool -> Output Buffer
    Output Buffer: Output Buffer
    value: Truth
ImmutableConstructiveByteArray WriteBool(
    ImmutableConstructiveByteArray Output Buffer,
    bool value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueTruth—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write Byte

Function

Writes a byte.

Signature
WriteByte -> Output Buffer
    Output Buffer: Output Buffer
    value: Byte
ImmutableConstructiveByteArray WriteByte(
    ImmutableConstructiveByteArray Output Buffer,
    byte value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueByte—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write Bytes

Function

Overload 1 of 5

Signature
WriteBytes -> Output Buffer
    Output Buffer: Output Buffer
    count: Integer
ImmutableConstructiveByteArray WriteBytes(
    ImmutableConstructiveByteArray Output Buffer,
    int count)

Writes empty zero padding.

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
countInteger—

Returns

resultOutput Buffer

Overload 2 of 5

Signature
WriteBytes -> Output Buffer
    Output Buffer: Output Buffer
    count: Integer
    subblock: Func<Output Buffer, Output Buffer>
ImmutableConstructiveByteArray WriteBytes(
    ImmutableConstructiveByteArray Output Buffer,
    int count,
    Func<ImmutableConstructiveByteArray, ImmutableConstructiveByteArray> subblock)

Writes a fixed-size immutable subblock. The continuation returns the written subblock, which is then padded with zeroes up to Count.

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
countInteger—
subblockFunc<Output Buffer, Output Buffer>—

Returns

resultOutput Buffer

Overload 3 of 5

Signature
WriteBytes -> Output Buffer
    Output Buffer: Output Buffer
    source: Output Buffer
ImmutableConstructiveByteArray WriteBytes(
    ImmutableConstructiveByteArray Output Buffer,
    ImmutableConstructiveByteArray source)

Appends another immutable constructive byte array.

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
sourceOutput Buffer—

Returns

resultOutput Buffer

Overload 4 of 5

Signature
WriteBytes -> Output Buffer
    Output Buffer: Output Buffer
    source: Mutable Constructive Byte Array
ImmutableConstructiveByteArray WriteBytes(
    ImmutableConstructiveByteArray Output Buffer,
    MutableConstructiveByteArray source)

Appends a mutable constructive byte array.

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
sourceMutable Constructive Byte Array—

Returns

resultOutput Buffer

Overload 5 of 5

Signature
WriteBytes -> Output Buffer
    Output Buffer: Output Buffer
    source: Byte Array
ImmutableConstructiveByteArray WriteBytes(
    ImmutableConstructiveByteArray Output Buffer,
    byte[] source)

Appends raw bytes.

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
sourceByte Array—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write Double

Function

Writes a 64-bit floating-point value.

Signature
WriteDouble -> Output Buffer
    Output Buffer: Output Buffer
    value: Number
ImmutableConstructiveByteArray WriteDouble(
    ImmutableConstructiveByteArray Output Buffer,
    double value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueNumber—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write Float

Function

Writes a 32-bit floating-point value.

Signature
WriteFloat -> Output Buffer
    Output Buffer: Output Buffer
    value: Low Accuracy Number
ImmutableConstructiveByteArray WriteFloat(
    ImmutableConstructiveByteArray Output Buffer,
    float value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueLow Accuracy Number—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write Guid

Function

Writes a GUID using the runtime byte representation of Guid.ToByteArray.

Signature
WriteGuid -> Output Buffer
    Output Buffer: Output Buffer
    value: Guid
ImmutableConstructiveByteArray WriteGuid(
    ImmutableConstructiveByteArray Output Buffer,
    Guid value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueGuid—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write Int

Function

Writes a 32-bit signed integer.

Signature
WriteInt -> Output Buffer
    Output Buffer: Output Buffer
    value: Integer
ImmutableConstructiveByteArray WriteInt(
    ImmutableConstructiveByteArray Output Buffer,
    int value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueInteger—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write Long

Function

Writes a 64-bit signed integer.

Signature
WriteLong -> Output Buffer
    Output Buffer: Output Buffer
    value: Large Integer
ImmutableConstructiveByteArray WriteLong(
    ImmutableConstructiveByteArray Output Buffer,
    long value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueLarge Integer—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write Signed Byte

Function

Writes a signed byte.

Signature
WriteSByte -> Output Buffer
    Output Buffer: Output Buffer
    value: SByte
ImmutableConstructiveByteArray WriteSByte(
    ImmutableConstructiveByteArray Output Buffer,
    sbyte value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueSByte—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write Short

Function

Writes a 16-bit signed integer.

Signature
WriteShort -> Output Buffer
    Output Buffer: Output Buffer
    value: Small Integer
ImmutableConstructiveByteArray WriteShort(
    ImmutableConstructiveByteArray Output Buffer,
    short value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueSmall Integer—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write String Fixed Size

Function

Overload 1 of 2

Signature
WriteStringFixedSize -> Output Buffer
    Output Buffer: Output Buffer
    value: Text
ImmutableConstructiveByteArray WriteStringFixedSize(
    ImmutableConstructiveByteArray Output Buffer,
    string value)

Writes a fixed-size string using exactly the encoded byte count of Value.

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueText—

Returns

resultOutput Buffer

Overload 2 of 2

Signature
WriteStringFixedSize -> Output Buffer
    Output Buffer: Output Buffer
    value: Text
    size: Integer
ImmutableConstructiveByteArray WriteStringFixedSize(
    ImmutableConstructiveByteArray Output Buffer,
    string value,
    int size)

Writes a fixed-size string padded with zeroes to Size bytes.

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueText—
sizeInteger—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write String Zero Terminated

Function

Writes a zero-terminated string.

Signature
WriteStringZeroTerminated -> Output Buffer
    Output Buffer: Output Buffer
    value: Text
ImmutableConstructiveByteArray WriteStringZeroTerminated(
    ImmutableConstructiveByteArray Output Buffer,
    string value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueText—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write U Int

Function

Writes a 32-bit unsigned integer.

Signature
WriteUInt -> Output Buffer
    Output Buffer: Output Buffer
    value: Positive Integer
ImmutableConstructiveByteArray WriteUInt(
    ImmutableConstructiveByteArray Output Buffer,
    uint value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valuePositive Integer—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write U Long

Function

Writes a 64-bit unsigned integer.

Signature
WriteULong -> Output Buffer
    Output Buffer: Output Buffer
    value: Large Positive Integer
ImmutableConstructiveByteArray WriteULong(
    ImmutableConstructiveByteArray Output Buffer,
    ulong value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueLarge Positive Integer—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Write U Short

Function

Writes a 16-bit unsigned integer.

Signature
WriteUShort -> Output Buffer
    Output Buffer: Output Buffer
    value: Small Positive Integer
ImmutableConstructiveByteArray WriteUShort(
    ImmutableConstructiveByteArray Output Buffer,
    ushort value)

Parameters

nametypedefaultdescription
Output BufferOutput Buffer—
valueSmall Positive Integer—

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform

Empty

Function

Gets an empty immutable constructive byte array.

Signature
Empty() -> Output Buffer
ImmutableConstructiveByteArray Empty()

Returns

resultOutput Buffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Output Buffer
Package
Platform