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

Method marshal_load

projects/Ruby/proto/test.rb:16456–16461  ·  view source on GitHub ↗

Load the struct

(data)

Source from the content-addressed store, hash-verified

16454
16455 # Load the struct
16456 def marshal_load(data)
16457 # Deserialize the struct from the FBE stream
16458 reader = StructMapModel.new(FBE::ReadBuffer.new)
16459 reader.attach_buffer(data)
16460 initialize_copy(reader.deserialize[0])
16461 end
16462
16463 # Get struct JSON value
16464 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