MCPcopy Create free account
hub / github.com/asterinas/vostd / push_slice

Method push_slice

kernel/src/util/ring_buffer.rs:180–186  ·  view source on GitHub ↗

Pushes a slice of items to the `RingBuffer`. Returns `Some` on success, all items are pushed to the ring buffer. Returns `None` if the ring buffer is full or cannot fit all items.

(&mut self, items: &[T])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

addMethod · 0.80
test_rb_basicsFunction · 0.80
test_rb_write_read_allFunction · 0.80

Calls 6

free_lenMethod · 0.80
advance_tailMethod · 0.80
lenMethod · 0.45
tailMethod · 0.45
unwrapMethod · 0.45
write_sliceMethod · 0.45

Tested by 2

test_rb_basicsFunction · 0.64
test_rb_write_read_allFunction · 0.64