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

Method marshal_load

projects/Ruby/proto/test.rb:10909–10914  ·  view source on GitHub ↗

Load the struct

(data)

Source from the content-addressed store, hash-verified

10907
10908 # Load the struct
10909 def marshal_load(data)
10910 # Deserialize the struct from the FBE stream
10911 reader = StructBytesModel.new(FBE::ReadBuffer.new)
10912 reader.attach_buffer(data)
10913 initialize_copy(reader.deserialize[0])
10914 end
10915
10916 # Get struct JSON value
10917 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