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

Method marshal_load

projects/Ruby/proto/test.rb:15461–15466  ·  view source on GitHub ↗

Load the struct

(data)

Source from the content-addressed store, hash-verified

15459
15460 # Load the struct
15461 def marshal_load(data)
15462 # Deserialize the struct from the FBE stream
15463 reader = StructSetModel.new(FBE::ReadBuffer.new)
15464 reader.attach_buffer(data)
15465 initialize_copy(reader.deserialize[0])
15466 end
15467
15468 # Get struct JSON value
15469 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