bit_hash

Git object hashing primitives (gix-hash equivalent)

git
hash
sha1
sha256
moon add mizchi/bit_hash@0.46.4
Download zip
Author
Version
0.46.4
License
Apache-2.0
Last updated
4 days ago
Downloads
593

Dependencies

README

#
Sha1State

pub struct Sha1State {
h : FixedArray[Int]
block : FixedArray[Byte]
w : FixedArray[Int]
block_len : Int
total_len : Int64
}

#
Sha1State::finish_raw

fn Sha1State::finish_raw(self : Sha1State) -> FixedArray[Byte]

#
Sha1State::new

fn Sha1State::new() -> Sha1State

#
Sha1State::reset

fn Sha1State::reset(self : Sha1State) -> Unit

#
Sha1State::update

fn Sha1State::update(self : Sha1State, data : Bytes) -> Unit

#
Sha1State::update_byte

fn Sha1State::update_byte(self : Sha1State, b : Byte) -> Unit

#
Sha1State::update_slice

fn Sha1State::update_slice(self : Sha1State, data : Bytes, offset : Int, len : Int) -> Unit

#
Sha1State::update_string

fn Sha1State::update_string(self : Sha1State, s : String) -> Unit

#
Sha256State

pub struct Sha256State {
h : FixedArray[Int]
block : FixedArray[Byte]
w : FixedArray[Int]
block_len : Int
total_len : Int64
}

#
Sha256State::finish_raw

fn Sha256State::finish_raw(self : Sha256State) -> FixedArray[Byte]

#
Sha256State::new

#
Sha256State::reset

fn Sha256State::reset(self : Sha256State) -> Unit

#
Sha256State::update

fn Sha256State::update(self : Sha256State, data : Bytes) -> Unit

#
Sha256State::update_byte

fn Sha256State::update_byte(self : Sha256State, b : Byte) -> Unit

#
Sha256State::update_slice

fn Sha256State::update_slice(self : Sha256State, data : Bytes, offset : Int, len : Int) -> Unit

#
Sha256State::update_string

fn Sha256State::update_string(self : Sha256State, s : String) -> Unit

#
hex_char_to_int

fn hex_char_to_int(c : Char) -> Int raise

#
int_to_hex4

fn int_to_hex4(n : Int) -> String

#
is_hex_char

fn is_hex_char(c : Char) -> Bool

#
is_hex_string

fn is_hex_string(s : String) -> Bool

#
lower_hex_string

fn lower_hex_string(s : String) -> String

#
sha1_array_prefix_raw

fn sha1_array_prefix_raw(data : Array[Byte], len : Int) -> FixedArray[Byte]

#
sha1_array_raw

fn sha1_array_raw(data : Array[Byte]) -> FixedArray[Byte]

#
sha1_bytes

fn sha1_bytes(data : Bytes) -> Bytes

#
sha1_prefix_raw

fn sha1_prefix_raw(data : Bytes, len : Int) -> FixedArray[Byte]

#
sha1_prefixed_raw

fn sha1_prefixed_raw(prefix : Bytes, data : Bytes) -> FixedArray[Byte]

#
sha1_raw

fn sha1_raw(data : Bytes) -> FixedArray[Byte]

#
sha256_array_prefix_raw

fn sha256_array_prefix_raw(data : Array[Byte], len : Int) -> FixedArray[Byte]

#
sha256_array_raw

fn sha256_array_raw(data : Array[Byte]) -> FixedArray[Byte]

#
sha256_bytes

fn sha256_bytes(data : Bytes) -> Bytes

#
sha256_prefix_raw

fn sha256_prefix_raw(data : Bytes, len : Int) -> FixedArray[Byte]

#
sha256_raw

fn sha256_raw(data : Bytes) -> FixedArray[Byte]

#
short_hex

fn short_hex(hex : String, n : Int) -> String

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io