cc4

Crates.iocc4
lib.rscc4
version0.1.2
sourcesrc
created_at2021-01-28 17:46:51.255109
updated_at2021-01-28 17:54:01.207694
descriptionVery simple implementation of the four_cc/fourcc algorithm as a const fn
homepage
repository
max_upload_size
id347704
size2,357
(adamnemecek)

documentation

README

cc4

Implementation of four_cc in Rust as a const fn. Supports both little and big endian systems.

four_cc(b"code");

Since four_cc is a const fn, you can also use it to define enum values for enums represented by u32.

#[repr(u32)]
pub enum Id {
    Apple = four_cc(b"appl"),
}
Commit count: 0

cargo fmt