Skip to main content

parse_binary

Function parse_binary 

Source
pub fn parse_binary(
    file_path: &str,
    content: &[u8],
) -> Result<Schema, ProtocolError>
Expand description

Parse a binary file into a raw file Schema.

The entire file becomes a single chunk vertex connected to the root file vertex via a chunk-of edge.

ยงErrors

Returns ProtocolError if schema construction fails.