Skip to main content

read_git_from_bytes

Function read_git_from_bytes 

Source
pub fn read_git_from_bytes(bytes: &[u8]) -> Result<Git, GitError>
Expand description

Reads typed GIT data directly from bytes.

ยงErrors

GitError::Gff when bytes are not a readable GFF, and GitError::UnsupportedFileType when they are a GFF of some other format, carrying the fourcc that was found.