#represented #byte #file-format #data #byte-sequences #u32 #four

no-std four-char-code

A string of 4 ascii chars represented by an u32

15 releases (stable)

2.2.0 Jun 18, 2023
2.1.0 Jun 7, 2023
1.2.0 Jun 18, 2023
0.0.5 Feb 9, 2021
0.0.4 Jun 30, 2019

#1400 in Parser implementations

Download history 8/week @ 2024-06-12 9/week @ 2024-06-19 7/week @ 2024-06-26 19/week @ 2024-07-03 5/week @ 2024-07-10 19/week @ 2024-07-17 112/week @ 2024-07-24 9/week @ 2024-07-31 13/week @ 2024-08-07 7/week @ 2024-08-14 11/week @ 2024-08-21 8/week @ 2024-08-28 6/week @ 2024-09-04 27/week @ 2024-09-11 17/week @ 2024-09-18 29/week @ 2024-09-25

79 downloads per month
Used in 4 crates (2 directly)

MIT license

15KB
393 lines

four-char-code

GitHub Workflow Status (with branch) Crates.io docs.rs Crates.io

A FourCC ("four-character code") is a sequence of four bytes (typically ASCII) used to uniquely identify data formats. It originated from the OSType or ResType metadata system used in classic Mac OS and was adopted for the Amiga/Electronic Arts Interchange File Format and derivatives. The idea was later reused to identify compressed data types in QuickTime and DirectShow.

Widipedia

#![no_std]

Enable #![no_std] support by disabling the default std feature:

[dependencies]
four-char-code = { version = "2", default-features = false }

MSRV

1.57.0

For older rust versions take a look at version 1.

No runtime deps

Features