Sign in

    illusory0x0/fmt/types does not have a README file

    BigEndianFormat

    pub(open) trait BigEndianFormat {
    write(value : Self, buffer : Memory, start : Int) -> Int
    count(value : Self) -> Int
    }

    if contract is violated, behavior is undefined

    Format

    pub(open) trait Format {
    write(value : Self, buffer : Memory, start : Int) -> Int
    count(value : Self) -> Int
    }

    if contract is violated, behavior is undefined
    impl Format for Byte
    impl Format for Int
    impl Format for Int16
    impl Format for UInt
    impl Format for UInt16
    impl Format for Double
    impl Format for Bytes
    impl Format for Iter[A]
    impl Format for Iter2[A, B]
    impl Format for Tuple2[A, B]
    impl Format for BytesView

    HexLowerFormat

    pub(open) trait HexLowerFormat {
    write(value : Self, buffer : Memory, start : Int) -> Int
    count(value : Self) -> Int
    }

    if contract is violated, behavior is undefined

    HexUpperFormat

    pub(open) trait HexUpperFormat {
    write(value : Self, buffer : Memory, start : Int) -> Int
    count(value : Self) -> Int
    }

    if contract is violated, behavior is undefined

    LittleEndianFormat

    pub(open) trait LittleEndianFormat {
    write(value : Self, buffer : Memory, start : Int) -> Int
    count(value : Self) -> Int
    }

    if contract is violated, behavior is undefined

    BigEndian

    pub(all) type BigEndian[T] T

    impl Format for BigEndian[T]

    BigEndian::inner

    #deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
    fn[T] BigEndian::inner(self : BigEndian[T]) -> T
    Convert newtype to its underlying type, automatically derived.

    HexLower

    pub(all) type HexLower[T] T

    impl Format for HexLower[T]

    HexLower::inner

    #deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
    fn[T] HexLower::inner(self : HexLower[T]) -> T
    Convert newtype to its underlying type, automatically derived.

    HexUpper

    pub(all) type HexUpper[T] T

    impl Format for HexUpper[T]

    HexUpper::inner

    #deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
    fn[T] HexUpper::inner(self : HexUpper[T]) -> T
    Convert newtype to its underlying type, automatically derived.

    LittleEndian

    pub(all) type LittleEndian[T] T

    impl Format for LittleEndian[T]

    LittleEndian::inner

    #deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
    fn[T] LittleEndian::inner(self : LittleEndian[T]) -> T
    Convert newtype to its underlying type, automatically derived.

    Memory

    type Memory

    Memory::length

    fn Memory::length(self : Memory) -> Int

    Memory::make

    fn Memory::make(len : Int, init : Byte) -> Memory

    Memory::op_get

    fn Memory::op_get(self : Memory, index : Int) -> Byte

    Memory::op_set

    fn Memory::op_set(self : Memory, index : Int, value : Byte) -> Unit

    format_count

    fn format_count(format : Bytes, data : Array[&Format]) -> Int raise

    Returns the upper bound on the number of bytes that format_write would write.

    Use this function to determine buffer size before calling format_write with the same arguments. The actual bytes written by format_write will never exceed this count.

    format_write

    fn format_write(format : Bytes, data : Array[&Format], buffer : Memory, start : Int) -> Int raise

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io