Package org.jruby.runtime.marshal
Class MarshalLoader
java.lang.Object
org.jruby.runtime.marshal.MarshalLoader
Unmarshals objects from strings or streams in Ruby's marshal format.
-
Constructor Summary
ConstructorsConstructorDescriptionMarshalLoader
(ThreadContext context, boolean freeze, IRubyObject proc) MarshalLoader
(ThreadContext context, IRubyObject proc) -
Method Summary
Modifier and TypeMethodDescriptionentry
(IRubyObject value) static RubyClass
getClassFromPath
(ThreadContext context, String path) static RubyModule
getModuleFromPath
(ThreadContext context, String path) void
ivar
(ThreadContext context, RubyInputStream in, org.jruby.runtime.marshal.MarshalLoader.MarshalState state, IRubyObject object, boolean[] hasEncoding) byte
readSignedByte
(ThreadContext context, RubyInputStream in) int
readUnsignedByte
(ThreadContext context, RubyInputStream in) void
start
(ThreadContext context, RubyInputStream in) symbol
(ThreadContext context, RubyInputStream in) unique
(ThreadContext context, RubyInputStream in) int
unmarshalInt
(ThreadContext context, RubyInputStream in) unmarshalObject
(ThreadContext context, RubyInputStream in) unmarshalString
(ThreadContext context, RubyInputStream in)
-
Constructor Details
-
MarshalLoader
-
MarshalLoader
-
-
Method Details
-
start
-
unmarshalObject
-
getModuleFromPath
-
getClassFromPath
-
ivar
public void ivar(ThreadContext context, RubyInputStream in, org.jruby.runtime.marshal.MarshalLoader.MarshalState state, IRubyObject object, boolean[] hasEncoding) -
entry
-
symbol
-
unique
-
readUnsignedByte
-
readSignedByte
-
unmarshalString
-
unmarshalInt
-