MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / encode_timestamps_col

Function encode_timestamps_col

nodedb-array/src/codec/column_codec.rs:79–81  ·  view source on GitHub ↗
(timestamps: &[i64])

Source from the content-addressed store, hash-verified

77// ---------------------------------------------------------------------------
78
79pub fn encode_timestamps_col(timestamps: &[i64]) -> Vec<u8> {
80 nodedb_codec::gorilla::encode_timestamps(timestamps)
81}
82
83pub fn decode_timestamps_col(data: &[u8]) -> ArrayResult<Vec<i64>> {
84 nodedb_codec::gorilla::decode_timestamps(data).map_err(codec_err)

Callers 2

timestamps_roundtripFunction · 0.85
encode_structuralFunction · 0.85

Calls 1

encode_timestampsFunction · 0.85

Tested by 1

timestamps_roundtripFunction · 0.68