class · System.IO

HandleStream

public class System.IO.HandleStream : System.IO.Stream

A file the runtime has open, by handle (0, 1 and 2 are the console's input, output and error): no buffer of its own.

Kind
class
Namespace
System.IO
Assembly
System.Core
Access
public
Source file
Stream.ant

Inheritance

Base classes
Any Stream HandleStream
Derived types
NetworkStream

Constructors

constructor HandleStream(handle: i64, name: System.String<u8>, reads: bool, writes: bool)
#

A stream that cannot seek (the console, a pipe, a socket).

constructor HandleStream(handle: i64, name: System.String<u8>, reads: bool, writes: bool, seeks: bool)
#

Properties

property CanRead: bool
#

read-only

property CanWrite: bool
#

read-only

property CanSeek: bool
#

read-only

property Length: i64
#

read-only

property Position: i64
#

Methods

method Read(buffer: u8[], offset: i32, count: i32) -> i32
#

override

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

override

method Seek(offset: i64, origin: System.IO.SeekOrigin) -> i64
#

override

method Flush() -> void
#

override

method Close() -> void
#

override

Private and internal members (12)

field handle: i64
#

private

field name: System.String<u8>
#

private

field reads: bool
#

private

field writes: bool
#

private

field seeks: bool
#

private

Whether the handle is a file (a position to move): the console, a pipe and a socket are not.

static method CloseHandle(handle: i64) -> i64
#

private static

static method ReadRange(handle: i64, bytes: u8[], offset: i64, count: i64) -> i64
#

private static

static method WriteRange(handle: i64, bytes: u8[], offset: i64, count: i64) -> i64
#

private static

static method SeekTo(handle: i64, offset: i64, origin: i64) -> i64
#

private static

static method LengthOf(handle: i64) -> i64
#

private static

static method FlushHandle(handle: i64) -> i64
#

private static

method Check() -> void
#

private

Inherited members (14)

Source

HandleStream as Larva HIR, decompiled from its Larva HIR.

System.IO.HandleStream.hir
// A file the runtime has open, by handle (0, 1 and 2 are the console's input, output and error): no buffer of its own.
public class System.IO.HandleStream : System.IO.Stream
{
    field handle: i64
    field name: System.String<u8>
    field reads: bool
    field writes: bool
    // Whether the handle is a file (a position to move): the console, a pipe and a socket are not.
    field seeks: bool
    static method CloseHandle(handle: i64) -> i64
    static method ReadRange(handle: i64, bytes: u8[], offset: i64, count: i64) -> i64
    static method WriteRange(handle: i64, bytes: u8[], offset: i64, count: i64) -> i64
    static method SeekTo(handle: i64, offset: i64, origin: i64) -> i64
    static method LengthOf(handle: i64) -> i64
    static method FlushHandle(handle: i64) -> i64
    method Check() -> void
    // A stream that cannot seek (the console, a pipe, a socket).
    constructor HandleStream(handle: i64, name: System.String<u8>, reads: bool, writes: bool)
    constructor HandleStream(handle: i64, name: System.String<u8>, reads: bool, writes: bool, seeks: bool)
    method Read(buffer: u8[], offset: i32, count: i32) -> i32
    method Write(buffer: u8[], offset: i32, count: i32) -> void
    method Seek(offset: i64, origin: System.IO.SeekOrigin) -> i64
    method Flush() -> void
    method Close() -> void
    property CanRead: bool
    property CanWrite: bool
    property CanSeek: bool
    property Length: i64
    property Position: i64
}
Esc