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

Method marshal_load

projects/Ruby/proto/test.rb:19503–19508  ·  view source on GitHub ↗

Load the struct

(data)

Source from the content-addressed store, hash-verified

19501
19502 # Load the struct
19503 def marshal_load(data)
19504 # Deserialize the struct from the FBE stream
19505 reader = StructEmptyModel.new(FBE::ReadBuffer.new)
19506 reader.attach_buffer(data)
19507 initialize_copy(reader.deserialize[0])
19508 end
19509
19510 # Get struct JSON value
19511 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