mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-25 12:58:40 +00:00
Fixed bug in convenient constructors for Java/C#
Also fixed Go unit tests not being up to date with recent schema changes. Change-Id: I42e619f9c5ea05f6f937c68a5c8a92462c46bce3 Tested: on Linux and Windows.
This commit is contained in:
@@ -139,8 +139,7 @@ func (rcv *Monster) TestarrayofstringLength() int {
|
||||
return 0
|
||||
}
|
||||
|
||||
/// an example documentation comment: this will end up in the generated code
|
||||
/// multiline too
|
||||
/// an example documentation comment: this will end up in the generated code multiline too
|
||||
func (rcv *Monster) Testarrayoftables(obj *Monster, j int) bool {
|
||||
o := flatbuffers.UOffsetT(rcv._tab.Offset(26))
|
||||
if o != 0 {
|
||||
@@ -194,12 +193,12 @@ func (rcv *Monster) TestnestedflatbufferLength() int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (rcv *Monster) Testempty(obj *Monster) *Monster {
|
||||
func (rcv *Monster) Testempty(obj *Stat) *Stat {
|
||||
o := flatbuffers.UOffsetT(rcv._tab.Offset(32))
|
||||
if o != 0 {
|
||||
x := rcv._tab.Indirect(o + rcv._tab.Pos)
|
||||
if obj == nil {
|
||||
obj = new(Monster)
|
||||
obj = new(Stat)
|
||||
}
|
||||
obj.Init(rcv._tab.Bytes, x)
|
||||
return obj
|
||||
|
||||
Reference in New Issue
Block a user