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

Method marshal_load

projects/Ruby/proto/test.rb:14322–14327  ·  view source on GitHub ↗

Load the struct

(data)

Source from the content-addressed store, hash-verified

14320
14321 # Load the struct
14322 def marshal_load(data)
14323 # Deserialize the struct from the FBE stream
14324 reader = StructListModel.new(FBE::ReadBuffer.new)
14325 reader.attach_buffer(data)
14326 initialize_copy(reader.deserialize[0])
14327 end
14328
14329 # Get struct JSON value
14330 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