mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-18 03:46:30 +00:00
Fix vector of strings for Go
Mirrors Java patch 39d4b7e2bf
Change-Id: If8d0ab29f6eb508a156d468aeb0a9d5410149e53
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
7b8053570e
commit
ef03cf46e4
@@ -26,7 +26,6 @@ func (t *Table) Indirect(off UOffsetT) UOffsetT {
|
||||
|
||||
// String gets a string from data stored inside the flatbuffer.
|
||||
func (t *Table) String(off UOffsetT) string {
|
||||
off += t.Pos
|
||||
off += GetUOffsetT(t.Bytes[off:])
|
||||
start := off + UOffsetT(SizeUOffsetT)
|
||||
length := GetUOffsetT(t.Bytes[off:])
|
||||
|
||||
Reference in New Issue
Block a user