MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / put_bytes

Method put_bytes

atomic-core/src/operation/codec.rs:303–307  ·  view source on GitHub ↗
(&mut self, bytes: &[u8])

Source from the content-addressed store, hash-verified

301 }
302
303 fn put_bytes(&mut self, bytes: &[u8]) -> Result<(), OperationCodecError> {
304 self.reserve(bytes.len())?;
305 self.bytes.extend_from_slice(bytes);
306 Ok(())
307 }
308
309 fn put_u8(&mut self, value: u8) -> Result<(), OperationCodecError> {
310 self.put_bytes(&[value])

Callers 11

put_u8Method · 0.80
put_u32Method · 0.80
put_u64Method · 0.80
put_i64Method · 0.80
put_stringMethod · 0.80
put_blobMethod · 0.80
put_hashMethod · 0.80
put_set_idMethod · 0.80
put_operation_idMethod · 0.80
put_working_copyMethod · 0.80
put_git_object_idMethod · 0.80

Calls 2

reserveMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected