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

Method marshal_load

projects/Ruby/proto/test.rb:1661–1666  ·  view source on GitHub ↗

Load the struct

(data)

Source from the content-addressed store, hash-verified

1659
1660 # Load the struct
1661 def marshal_load(data)
1662 # Deserialize the struct from the FBE stream
1663 reader = StructSimpleModel.new(FBE::ReadBuffer.new)
1664 reader.attach_buffer(data)
1665 initialize_copy(reader.deserialize[0])
1666 end
1667
1668 # Get struct JSON value
1669 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