MCPcopy Create free account
hub / github.com/Recordscript/recordscript / update

Method update

libs/scrap/src/android/ffi.rs:57–64  ·  view source on GitHub ↗
(&mut self, data: *mut u8, len: usize)

Source from the content-addressed store, hash-verified

55 }
56
57 fn update(&mut self, data: *mut u8, len: usize) {
58 if self.enable.not() {
59 return;
60 }
61 self.len = len;
62 self.ptr.store(data, SeqCst);
63 self.last_update = Instant::now();
64 }
65
66 // take inner data as slice
67 // release when success

Calls 1

storeMethod · 0.80

Tested by

no test coverage detected