mist/file

Types

pub external type FileDescriptor
pub type FileMode {
  Raw
}

Constructors

  • Raw

Functions

pub external fn file_open(
  file: BitString,
  modes: List(FileMode),
) -> Result(FileDescriptor, Atom)
pub external fn file_size(path: String) -> Int
pub external fn sendfile(
  file_descriptor: FileDescriptor,
  socket: Socket,
  offset: Int,
  bytes: Int,
  options: List(a),
) -> Result(Int, Atom)
pub external fn uri_unquote(uri: String) -> String