private void writeAndRegisterSymbol(ByteList sym) throws IOException { if (cache.isSymbolRegistered(sym)) { cache.writeSymbolLink(this, sym); } else { registerSymbol(sym); dumpSymbol(sym); } }
public IRubyObject readLink(UnmarshalStream input, int type) throws IOException { int i = input.unmarshalInt(); if (type == '@') { return linkedByIndex(i); } assert type == ';'; return symbolByIndex(i); }
public void registerLinkTarget(IRubyObject newObject) { if (MarshalStream.shouldBeRegistered(newObject)) { cache.register(newObject); } }
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 writeSymbolLink(MarshalStream output, ByteList sym) throws IOException { output.write(';'); output.writeInt(registeredSymbolIndex(sym)); }
public void registerLinkTarget(IRubyObject newObject) { if (shouldBeRegistered(newObject)) { cache.register(newObject); } }
private void writeAndRegisterSymbol(ByteList sym) throws IOException { if (cache.isSymbolRegistered(sym)) { cache.writeSymbolLink(this, sym); } else { registerSymbol(sym); dumpSymbol(sym); } }
public IRubyObject readLink(UnmarshalStream input, int type) throws IOException { int i = input.unmarshalInt(); if (type == '@') { return linkedByIndex(i); } assert type == ';'; return symbolByIndex(i); }
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 writeSymbolLink(MarshalStream output, ByteList sym) throws IOException { output.write(';'); output.writeInt(registeredSymbolIndex(sym)); }
public void registerLinkTarget(IRubyObject newObject) { if (MarshalStream.shouldBeRegistered(newObject)) { cache.register(newObject); } }
public void registerLinkTarget(IRubyObject newObject) { if (shouldBeRegistered(newObject)) { cache.register(newObject); } }
private void writeAndRegisterSymbol(String sym) throws IOException { if (cache.isSymbolRegistered(sym)) { cache.writeSymbolLink(this, sym); } else { registerSymbol(sym); dumpSymbol(sym); } }
public IRubyObject readLink(UnmarshalStream input, int type) throws IOException { int i = input.unmarshalInt(); if (type == '@') { return linkedByIndex(i); } assert type == ';'; return symbolByIndex(i); }
public void registerLinkTarget(IRubyObject newObject) { if (MarshalStream.shouldBeRegistered(newObject)) { cache.register(newObject); } }
public void registerLinkTarget(IRubyObject newObject) { if (shouldBeRegistered(newObject)) { cache.register(newObject); } }
private void writeAndRegisterSymbol(String sym) throws IOException { if (cache.isSymbolRegistered(sym)) { cache.writeSymbolLink(this, sym); } else { registerSymbol(sym); dumpSymbol(sym); } }
public IRubyObject readLink(UnmarshalStream input, int type) throws IOException { int i = input.unmarshalInt(); if (type == '@') { return linkedByIndex(i); } assert type == ';'; return symbolByIndex(i); }
public void registerLinkTarget(IRubyObject newObject) { if (MarshalStream.shouldBeRegistered(newObject)) { cache.register(newObject); } }
public void registerLinkTarget(IRubyObject newObject) { if (shouldBeRegistered(newObject)) { cache.register(newObject); } }