capnproto-dlang ~master (2022-01-25T00:15:37.4620521)
Dub
Repo
SegmentBuilder
capnproto
SegmentBuilder
Undocumented in source.
struct
SegmentBuilder {
static
int
FAILED_ALLOCATION
;
size_t
pos
;
int
id
;
this
(ByteBuffer buf, Arena arena);
size_t
currentSize
();
size_t
allocate
(size_t amount);
BuilderArena
getArena
();
bool
isWritable
();
void
put
(int index, long value);
SegmentReader
*
asReader
();
package
SegmentReader
reader
;
}
Constructors
this
this
(ByteBuffer buf, Arena arena)
Undocumented in source.
Alias This
reader
Members
Functions
allocate
size_t
allocate
(size_t amount)
Allocate
amount
words.
asReader
SegmentReader
*
asReader
()
Undocumented in source. Be warned that the author may not have intended to support it.
currentSize
size_t
currentSize
()
Returns how many words have already been allocated.
getArena
BuilderArena
getArena
()
Undocumented in source. Be warned that the author may not have intended to support it.
isWritable
bool
isWritable
()
Undocumented in source. Be warned that the author may not have intended to support it.
put
void
put
(int index, long value)
Undocumented in source. Be warned that the author may not have intended to support it.
Static variables
FAILED_ALLOCATION
int
FAILED_ALLOCATION
;
Undocumented in source.
Variables
id
int
id
;
Undocumented in source.
pos
size_t
pos
;
Undocumented in source.
reader
SegmentReader
reader
;
Undocumented in source.
Meta
Source
See Implementation
capnproto
SegmentBuilder
structs
SegmentBuilder