mist/file

Types

pub external type FileDescriptor
pub type FileMode {
  Raw
}

Constructors

  • Raw

Functions

pub fn open(file: BitString) -> Result(FileDescriptor, Atom)
pub external fn sendfile(
  file_descriptor: FileDescriptor,
  socket: Socket,
  offset: Int,
  bytes: Int,
  options: List(a),
) -> Result(Int, Atom)
pub external fn size(path: BitString) -> Int
pub external fn uri_unquote(uri: String) -> String
Search Document