summaryrefslogtreecommitdiff
path: root/net/FlatBuffers/FlatBufferBuilder.cs
diff options
context:
space:
mode:
authorWouter van Oortmerssen <wvo@google.com>2016-08-10 17:53:40 -0700
committerWouter van Oortmerssen <wvo@google.com>2016-08-10 17:53:40 -0700
commit18d67ed83bfd54de4d248f4650f5ff1900b1ed6b (patch)
tree9c54212f3bcbd614657bf6088e2b9a1e7258a154 /net/FlatBuffers/FlatBufferBuilder.cs
parent205ddb175f259d8fd9bae1cbfaf88162996799aa (diff)
downloadflatbuffers-18d67ed83bfd54de4d248f4650f5ff1900b1ed6b.tar.gz
flatbuffers-18d67ed83bfd54de4d248f4650f5ff1900b1ed6b.tar.bz2
flatbuffers-18d67ed83bfd54de4d248f4650f5ff1900b1ed6b.zip
Clarified in the docs how to get to the serialized bytes.
This was a frequent source of confusion, since in all implementations the data doesn't start at offset 0 in the buffer. Change-Id: I045966e65928e9acd9def84e215914ecb5510653
Diffstat (limited to 'net/FlatBuffers/FlatBufferBuilder.cs')
-rw-r--r--net/FlatBuffers/FlatBufferBuilder.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/FlatBuffers/FlatBufferBuilder.cs b/net/FlatBuffers/FlatBufferBuilder.cs
index 590e6ac0..8c57abec 100644
--- a/net/FlatBuffers/FlatBufferBuilder.cs
+++ b/net/FlatBuffers/FlatBufferBuilder.cs
@@ -582,6 +582,8 @@ namespace FlatBuffers
/// </summary>
/// <remarks>
/// This is typically only called after you call `Finish()`.
+ /// The actual data starts at the ByteBuffer's current position,
+ /// not necessarily at `0`.
/// </remarks>
/// <returns>
/// Returns the ByteBuffer for this FlatBuffer.