You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module Example
using FlatBuffers
@with_kwmutable struct SimpleType
x::Int32=1end# ... other generated stuffendimport FlatBuffers, Example
# create an instance of our type
val = Example.SimpleType(2)
# serialize it to example.binopen("example.bin", "w") do f FlatBuffers.serialize(f, val) end# read the value back again from file
val2 =open("example.bin", "r") do f Example.SimpleType(f) end
gives error
The correct code is
val2 =open("example.bin", "r") do f
FlatBuffers.deserialize(f, Example.SimpleType)
end
The text was updated successfully, but these errors were encountered:
gives error
The correct code is
The text was updated successfully, but these errors were encountered: