MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / eq_byte_array

Function eq_byte_array

crates/table/src/eq.rs:223–228  ·  view source on GitHub ↗

Equates the byte arrays `data_a/data_b = ctx.a/b.bytes[range_move(0..len, ctx.curr_offset)]` and advances the offset.

(ctx: &mut EqCtx<'_, '_>, len: usize)

Source from the content-addressed store, hash-verified

221/// Equates the byte arrays `data_a/data_b = ctx.a/b.bytes[range_move(0..len, ctx.curr_offset)]`
222/// and advances the offset.
223fn eq_byte_array(ctx: &mut EqCtx<'_, '_>, len: usize) -> bool {
224 let data_a = &ctx.a.bytes[range_move(0..len, ctx.curr_offset)];
225 let data_b = &ctx.b.bytes[range_move(0..len, ctx.curr_offset)];
226 ctx.curr_offset += len;
227 data_a == data_b
228}
229
230#[cfg(test)]
231mod test {

Callers 1

eq_valueFunction · 0.85

Calls 1

range_moveFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…