Copying a RingBuffer wrapper aliases the same native buffer. The native
queue is not serialized; a restored wrapper fails on its first operation.
Slots
ptrProtected native pointer.
infoImmutable stream metadata.
capacityFixed sample capacity.
schema_versionWrapper schema.
Examples
info <- streamInfo("demo", type = "EEG",
channel_names = c("C3", "C4"), nominal_srate = 100)
buffer <- ringBuffer(info, capacity = 8L)
ringPush(buffer, matrix(as.double(1:4), 2, 2), c(0.01, 0.02))
ringFill(buffer)
#> [1] 2