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

Method marshal_load

projects/Ruby/proto/test.rb:13057–13062  ·  view source on GitHub ↗

Load the struct

(data)

Source from the content-addressed store, hash-verified

13055
13056 # Load the struct
13057 def marshal_load(data)
13058 # Deserialize the struct from the FBE stream
13059 reader = StructVectorModel.new(FBE::ReadBuffer.new)
13060 reader.attach_buffer(data)
13061 initialize_copy(reader.deserialize[0])
13062 end
13063
13064 # Get struct JSON value
13065 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