forked from BigfootDev/flatbuffers
Empties the sharedString map on reset on go and csharp (#6187)
Fixes go tests
This commit is contained in:
@@ -53,6 +53,12 @@ func (b *Builder) Reset() {
|
||||
b.vtable = b.vtable[:0]
|
||||
}
|
||||
|
||||
if b.sharedStrings != nil {
|
||||
for key := range b.sharedStrings {
|
||||
delete(b.sharedStrings, key)
|
||||
}
|
||||
}
|
||||
|
||||
b.head = UOffsetT(len(b.Bytes))
|
||||
b.minalign = 1
|
||||
b.nested = false
|
||||
|
||||
Reference in New Issue
Block a user