MCPcopy Create free account
hub / github.com/RetypeOS/parcode / payload_len

Method payload_len

src/reader.rs:1233–1236  ·  view source on GitHub ↗

Calculates the size of the payload (excluding metadata/footer).

(&self)

Source from the content-addressed store, hash-verified

1231
1232 /// Calculates the size of the payload (excluding metadata/footer).
1233 pub fn payload_len(&self) -> u64 {
1234 // offset + (payload_end - offset)
1235 self.payload_end_offset - self.offset
1236 }
1237}
1238
1239// --- STREAMING ITERATOR ---

Callers 1

inspect_nodeMethod · 0.80

Calls

no outgoing calls

Tested by 1

inspect_nodeMethod · 0.64