public void dumpSymbol(String value) throws IOException { write(':'); writeString(value); }
public void writeLink(MarshalStream output, IRubyObject value) throws IOException { assert !(value instanceof RubySymbol) : "Use writeSymbolLink for symbols"; output.write('@'); output.writeInt(registeredIndex(value)); }
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write(isTrue() ? 'T' : 'F'); } }
public void dumpDefaultObjectHeader(char tp, RubyClass type) throws IOException { dumpExtended(type); write(tp); writeAndRegisterSymbol(getPathFromClass(type.getRealClass())); }
public void writeLink(MarshalStream output, IRubyObject value) throws IOException { assert !(value instanceof RubySymbol) : "Use writeSymbolLink for symbols"; output.write('@'); output.writeInt(registeredIndex(value)); }
public void dumpDefaultObjectHeader(char tp, RubyClass type) throws IOException { dumpExtended(type); write(tp); writeAndRegisterSymbol(getPathFromClass(type.getRealClass())); }
public void dumpSymbol(String value) throws IOException { write(':'); writeString(value); }
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write(isTrue() ? 'T' : 'F'); } }
public void writeSymbolLink(MarshalStream output, String sym) throws IOException { output.write(';'); output.writeInt(registeredSymbolIndex(sym)); }
public void writeUserClass(IRubyObject obj, RubyClass type) throws IOException { write(TYPE_UCLASS); // w_unique if (type.getName().charAt(0) == '#') { throw obj.getRuntime().newTypeError("can't dump anonymous class " + type.getName()); } // w_symbol writeAndRegisterSymbol(type.getName()); }
public void writeSymbolLink(MarshalStream output, ByteList sym) throws IOException { output.write(';'); output.writeInt(registeredSymbolIndex(sym)); }
public void writeUserClass(IRubyObject obj, RubyClass type) throws IOException { write(TYPE_UCLASS); // w_unique if (type.getName().charAt(0) == '#') { throw obj.getRuntime().newTypeError("can't dump anonymous class " + type.getName()); } // w_symbol writeAndRegisterSymbol(type.getName()); }
public void dumpSymbol(ByteList value) throws IOException { write(':'); int len = value.length(); writeInt(len); out.write(value.getUnsafeBytes(), value.begin(), len); }
public void dumpDefaultObjectHeader(char tp, RubyClass type) throws IOException { dumpExtended(type); write(tp); writeAndRegisterSymbol(RubySymbol.newSymbol(runtime, getPathFromClass(type.getRealClass())).getBytes()); }
public void dumpSymbol(ByteList value) throws IOException { write(':'); int len = value.length(); writeInt(len); out.write(value.getUnsafeBytes(), value.begin(), len); }
public void dumpDefaultObjectHeader(char tp, RubyClass type) throws IOException { dumpExtended(type); write(tp); writeAndRegisterSymbol(RubySymbol.newSymbol(runtime, getPathFromClass(type.getRealClass())).getBytes()); }
public void writeLink(MarshalStream output, IRubyObject value) throws IOException { if (value instanceof RubySymbol) { writeSymbolLink(output, ((RubySymbol)value).asJavaString()); } else { output.write('@'); output.writeInt(registeredIndex(value)); } }
public void writeUserClass(IRubyObject obj, RubyClass type) throws IOException { write(TYPE_UCLASS); // w_unique if (type.getName().charAt(0) == '#') { Ruby runtime = obj.getRuntime(); throw runtime.newTypeError(str(runtime, "can't dump anonymous class ", types(runtime, type))); } // w_symbol writeAndRegisterSymbol(RubySymbol.newSymbol(runtime, type.getName()).getBytes()); }
public void writeLink(MarshalStream output, IRubyObject value) throws IOException { if (value instanceof RubySymbol) { writeSymbolLink(output, ((RubySymbol)value).asJavaString()); } else { output.write('@'); output.writeInt(registeredIndex(value)); } }
public void writeUserClass(IRubyObject obj, RubyClass type) throws IOException { write(TYPE_UCLASS); // w_unique if (type.getName().charAt(0) == '#') { Ruby runtime = obj.getRuntime(); throw runtime.newTypeError(str(runtime, "can't dump anonymous class ", types(runtime, type))); } // w_symbol writeAndRegisterSymbol(RubySymbol.newSymbol(runtime, type.getName()).getBytes()); }