FlexibleByteRingQueue.save

Writes the queue's state and contents to the given output stream in the following format:

- First ExportMetadata.sizeof bytes: Metadata header - Next size_t.sizeof bytes: Number n of bytes of queue data (possibly 0) - Next n bytes: Queue data

  1. size_t save(OutputStream output)
    class FlexibleByteRingQueue
    size_t
    save
  2. void save(void delegate(in void[] meta, in void[] head, in void[] tail = null) store)

Parameters

output OutputStream

output stream to write to

Return Value

Type: size_t

number of bytes written to output.

Meta