class Ruby::Marshal::Struct
- Ruby::Marshal::Struct
- Ruby::Marshal::StreamObject
- Reference
- Object
Overview
“S” represents a Struct. Following the type byte is a symbol containing the name of the struct. Following the name is a long indicating the number of members in the struct. Double the number of objects follow the member count. Each member is a pair containing the member’s symbol and an object for the value of that member.
If the struct name does not match a Struct subclass in the running ruby an exception should be raised.
If there is a mismatch between the struct in the currently running ruby and the member count in the marshaled struct an exception should be raised.
Defined in:
ruby-marshal/stream_objects/struct.crConstructors
Instance Method Summary
- #data : Ruby::Marshal::Null
- #populate_class(klass : ::Object)
- #read(stream : Bytes)
- #read_attr(name : ::String, raw = false)
- #read_raw_attr(name : ::String)