summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDerek Bailey <derekbailey@google.com>2023-05-11 12:11:32 -0700
committerDerek Bailey <derekbailey@google.com>2023-05-11 12:22:05 -0700
commitc2f764c22b0f9ad6b0bb1125519e7d8fc7c70608 (patch)
treee9216518d995732ee61e312e9370baab3ffc1262 /tests
parente97ff95970f006a953c7804ce8d707fde2473a86 (diff)
downloadflatbuffers-c2f764c22b0f9ad6b0bb1125519e7d8fc7c70608.tar.gz
flatbuffers-c2f764c22b0f9ad6b0bb1125519e7d8fc7c70608.tar.bz2
flatbuffers-c2f764c22b0f9ad6b0bb1125519e7d8fc7c70608.zip
add GetSizePrefixedBufferLength()
Diffstat (limited to 'tests')
-rw-r--r--tests/monster_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/monster_test.cpp b/tests/monster_test.cpp
index 38a33577..d44f118e 100644
--- a/tests/monster_test.cpp
+++ b/tests/monster_test.cpp
@@ -173,7 +173,7 @@ flatbuffers::DetachedBuffer CreateFlatBufferTest(std::string &buffer) {
FinishMonsterBuffer(builder, mloc);
-// clang-format off
+ // clang-format off
#ifdef FLATBUFFERS_TEST_VERBOSE
// print byte data for debugging:
auto p = builder.GetBufferPointer();
@@ -198,7 +198,7 @@ void AccessFlatBufferTest(const uint8_t *flatbuf, size_t length, bool pooled) {
verifier.SetFlexReuseTracker(&flex_reuse_tracker);
TEST_EQ(VerifyMonsterBuffer(verifier), true);
-// clang-format off
+ // clang-format off
#ifdef FLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE
std::vector<uint8_t> test_buff;
test_buff.resize(length * 2);