Skip to content

RillCompilerIntOps

extensionRillCompilerIntOpsonRillCompile<int>

Byte-stream compile terminals.

Properties

toByteVector extension no setter

IO<ByteVector>gettoByteVector

Collects all emitted bytes into a ByteVector.

Available on RillCompile<O>, provided by the RillCompilerIntOps extension

Implementation
dart
IO<ByteVector> get toByteVector =>
    foldChunks(ByteVector.empty, (acc, chunk) => acc.concat(ByteVector.view(chunk.asUint8List)));