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 RubyClassgetClassFromPath(ThreadContext context, String path) static RubyModulegetModuleFromPath(ThreadContext context, String path) voidivar(ThreadContext context, RubyInputStream in, org.jruby.runtime.marshal.MarshalLoader.MarshalState state, IRubyObject object, boolean[] hasEncoding) bytereadSignedByte(ThreadContext context, RubyInputStream in) intreadUnsignedByte(ThreadContext context, RubyInputStream in) voidstart(ThreadContext context, RubyInputStream in) symbol(ThreadContext context, RubyInputStream in) unique(ThreadContext context, RubyInputStream in) intunmarshalInt(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
-