class · System.IO

BinaryWriter

public class System.IO.BinaryWriter : System.Any
Kind
class
Namespace
System.IO
Assembly
System.Core
Access
public
Source file
BinaryIO.ant

Inheritance

Base classes
Any BinaryWriter

Constructors

constructor BinaryWriter(output: System.IO.Stream)
#

Properties

property BaseStream: System.IO.Stream
#

read-only

The stream it writes to.

Methods

method Write(value: u8) -> void
#
method Write(value: i8) -> void
#
method Write(value: bool) -> void
#
method Write(value: i16) -> void
#
method Write(value: u16) -> void
#
method Write(value: i32) -> void
#
method Write(value: u32) -> void
#
method Write(value: i64) -> void
#
method Write(value: u64) -> void
#
method Write(value: f32) -> void
#
method Write(value: f64) -> void
#
method Write(text: System.String<u8>) -> void
#

The byte count (7-bit encoded) and the UTF-8 bytes.

method Write(bytes: u8[]) -> void
#

The bytes, without their count.

method Write(bytes: u8[], offset: i32, count: i32) -> void
#
method Write7BitEncodedInt(value: i32) -> void
#

7 bits per byte, the high bit set on every byte but the last.

method Flush() -> void
#
method Close() -> void
#

Private and internal members (4)

field stream: System.IO.Stream
#

private

field memory: System.IO.MemoryStream?
#

private

The stream when it is a MemoryStream: calls through this type can be direct (the program does not override them).

field scratch: u8[]
#

private

method Put(value: u64, count: i32) -> void
#

private

Inherited members (5)

Source

BinaryWriter as Larva HIR, decompiled from its Larva HIR.

System.IO.BinaryWriter.hir
public class System.IO.BinaryWriter : System.Any
{
    field stream: System.IO.Stream
    // The stream when it is a MemoryStream: calls through this type can be direct (the program does not override them).
    field memory: System.IO.MemoryStream?
    field scratch: u8[]
    method Put(value: u64, count: i32) -> void
    constructor BinaryWriter(output: System.IO.Stream)
    method Write(value: u8) -> void
    method Write(value: i8) -> void
    method Write(value: bool) -> void
    method Write(value: i16) -> void
    method Write(value: u16) -> void
    method Write(value: i32) -> void
    method Write(value: u32) -> void
    method Write(value: i64) -> void
    method Write(value: u64) -> void
    method Write(value: f32) -> void
    method Write(value: f64) -> void
    // The byte count (7-bit encoded) and the UTF-8 bytes.
    method Write(text: System.String<u8>) -> void
    // The bytes, without their count.
    method Write(bytes: u8[]) -> void
    method Write(bytes: u8[], offset: i32, count: i32) -> void
    // 7 bits per byte, the high bit set on every byte but the last.
    method Write7BitEncodedInt(value: i32) -> void
    method Flush() -> void
    method Close() -> void
    // The stream it writes to.
    property BaseStream: System.IO.Stream
}
Esc