summaryrefslogtreecommitdiff
path: root/src/mongo/bson/util/simple8b.h
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2021-08-11 11:17:19 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-08-24 02:41:29 +0000
commit2873b99f1f7477d7053504dcd3f0caa68745f506 (patch)
treef2fc0df393b67a118b3c3203df2b6edd2ef7e7ff /src/mongo/bson/util/simple8b.h
parenta241a584d81ade104f7a2e37ca7edfdc974a47cc (diff)
downloadmongo-2873b99f1f7477d7053504dcd3f0caa68745f506.tar.gz
SERVER-58577 Add BSONColumn to interpret BSON Binary Subtype 7 data.
BSONColumn provides forward iteration over BSON Binary Subtype 7 data Decompressed BSONElement from deltas need to be re-materialized. BSONColumn manage this memory and any BSONElement reference has the same lifetime as BSONColumn.
Diffstat (limited to 'src/mongo/bson/util/simple8b.h')
-rw-r--r--src/mongo/bson/util/simple8b.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/bson/util/simple8b.h b/src/mongo/bson/util/simple8b.h
index 46beaa26627..9fad90c6f28 100644
--- a/src/mongo/bson/util/simple8b.h
+++ b/src/mongo/bson/util/simple8b.h
@@ -322,7 +322,7 @@ public:
bool operator!=(const Iterator& rhs) const;
private:
- Iterator(const uint64_t* pos, const uint64_t* end);
+ Iterator(const char* pos, const char* end);
/**
* Loads the current Simple8b block into the iterator
@@ -335,8 +335,8 @@ public:
*/
uint16_t _rleCountInCurrent(uint8_t selectorExtension) const;
- const uint64_t* _pos;
- const uint64_t* _end;
+ const char* _pos;
+ const char* _end;
// Current Simple8b block in native endian
uint64_t _current;