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

Method marshal_load

projects/Ruby/proto/test.rb:17781–17786  ·  view source on GitHub ↗

Load the struct

(data)

Source from the content-addressed store, hash-verified

17779
17780 # Load the struct
17781 def marshal_load(data)
17782 # Deserialize the struct from the FBE stream
17783 reader = StructHashModel.new(FBE::ReadBuffer.new)
17784 reader.attach_buffer(data)
17785 initialize_copy(reader.deserialize[0])
17786 end
17787
17788 # Get struct JSON value
17789 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