MCPcopy Create free account
hub / github.com/apache/paimon-rust / read_byte_at

Method read_byte_at

crates/paimon/src/spec/binary_row.rs:142–153  ·  view source on GitHub ↗
(&self, offset: usize)

Source from the content-addressed store, hash-verified

140 }
141
142 fn read_byte_at(&self, offset: usize) -> crate::Result<u8> {
143 self.data
144 .get(offset)
145 .copied()
146 .ok_or_else(|| crate::Error::UnexpectedError {
147 message: format!(
148 "BinaryRow: read 1 byte at offset {offset} exceeds data length {}",
149 self.data.len()
150 ),
151 source: None,
152 })
153 }
154
155 fn read_i64_at(&self, offset: usize) -> crate::Result<i64> {
156 self.read_slice::<8>(offset).map(i64::from_le_bytes)

Callers 2

get_booleanMethod · 0.80
get_byteMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected