dart Builder - expose finished buffer size (#6403)

This commit is contained in:
Ivan Dlugos
2021-01-22 01:06:11 +01:00
committed by GitHub
parent 52e2177069
commit ad3a729f96
2 changed files with 9 additions and 6 deletions

View File

@@ -265,6 +265,7 @@ class BuilderTest {
builder.addInt32(1, 20, 10);
int offset = builder.endTable();
byteList = builder.finish(offset);
expect(builder.size(), byteList.length);
}
// read and verify
BufferContext buffer = new BufferContext.fromBytes(byteList);