Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions string_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,12 @@ func parseStringTable(buf []byte, numUpdates int32, name string, userDataFixed b
value := []byte{}

// Read a boolean to determine whether the operation is an increment or
// has a fixed index position. A fixed index position of zero should be
// has a relative index position. A fixed index position of zero should be
// the last data in the buffer, and indicates that all data has been read.
incr := r.readBoolean()
if incr {
index++
} else {
index = int32(r.readVarUint32()) + 1
if !r.readBoolean() {
index += int32(r.readVarUint32()) + 1
}
index++

// Some values have keys, some don't.
hasKey := r.readBoolean()
Expand Down