cc4 0.1.2

Very simple implementation of the four_cc/fourcc algorithm as a const fn
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 1.97 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 993.08 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • adamnemecek

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"),
}