MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / marshal_load

Method marshal_load

projects/Ruby/proto/test.rb:18890–18895  ·  view source on GitHub ↗

Load the struct

(data)

Source from the content-addressed store, hash-verified

18888
18889 # Load the struct
18890 def marshal_load(data)
18891 # Deserialize the struct from the FBE stream
18892 reader = StructHashExModel.new(FBE::ReadBuffer.new)
18893 reader.attach_buffer(data)
18894 initialize_copy(reader.deserialize[0])
18895 end
18896
18897 # Get struct JSON value
18898 def to_json

Callers

nothing calls this directly

Calls 3

newMethod · 0.45
attach_bufferMethod · 0.45
deserializeMethod · 0.45

Tested by

no test coverage detected