1 unstable release

0.1.0 Mar 14, 2024

#1228 in Parser implementations

Download history 119/week @ 2024-03-11 13/week @ 2024-03-18 20/week @ 2024-04-01

152 downloads per month

MIT license

11KB
249 lines

Vecs_file

Crate for reading the format used for DEEP1B.

Usage

Read a file with read_vecs_file. You can read i32, f32 and u8 vecs files.

vecs_file::read_vecs_file::<i32>(path_to_file);

read_vecs_file returns a Result that is either a structure called Vectors<T> of a VecsError. The Vectors<T> structure implements functions to access individual vectors.

The crate also provides utility functions to write a vecs file, and a reader/writer from a stream. This allows reading/writing by blocks if needed.

Dependencies

~315–770KB
~18K SLoC