MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getListStartOffset

Method getListStartOffset

src/storage/table/list_chunk_data.cpp:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69offset_t ListChunkData::getListStartOffset(offset_t offset) const {
70 if (numValues == 0 || (offset != numValues && nullData->isNull(offset))) {
71 return 0;
72 }
73 DASSERT(offset == numValues || getListEndOffset(offset) >= getListSize(offset));
74 return offset == numValues ? getListEndOffset(offset - 1) :
75 getListEndOffset(offset) - getListSize(offset);
76}
77
78offset_t ListChunkData::getListEndOffset(offset_t offset) const {
79 if (numValues == 0 || nullData->isNull(offset)) {

Callers 2

appendMethod · 0.45
writeMethod · 0.45

Calls 1

isNullMethod · 0.45

Tested by

no test coverage detected