Skip to main content
Log in

Mojo struct

FileDescriptor

File descriptor of a file.

Fields

  • value (Int): The underlying value of the file descriptor.

Implemented traits

AnyType, Copyable, Movable

Methods

__init__

__init__(inout self: Self)

Default constructor to stdout.

__init__(inout self: Self, x: Int)

Constructs the file descriptor from an integer.

Args:

  • x (Int): The integer.

__init__(inout self: Self, f: FileHandle)

Constructs the file descriptor from a file handle.

Args:

  • f (FileHandle): The file handle.

Was this page helpful?