public IRubyObject readLink(UnmarshalStream input, int type) throws IOException { int i = input.unmarshalInt(); if (type == '@') { return linkedByIndex(i); } assert type == ';'; return symbolByIndex(i); }
public IRubyObject readLink(UnmarshalStream input, int type) throws IOException { int i = input.unmarshalInt(); if (type == '@') { return linkedByIndex(i); } assert type == ';'; return symbolByIndex(i); }
public IRubyObject readLink(UnmarshalStream input, int type) throws IOException { int i = input.unmarshalInt(); if (type == '@') { return linkedByIndex(i); } assert type == ';'; return symbolByIndex(i); }
public IRubyObject readLink(UnmarshalStream input, int type) throws IOException { int i = input.unmarshalInt(); if (type == '@') { return linkedByIndex(i); } assert type == ';'; return symbolByIndex(i); }
public static RubyFixnum unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return input.getRuntime().newFixnum(input.unmarshalInt()); }
public static RubyFixnum unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return input.getRuntime().newFixnum(input.unmarshalInt()); }
public static RubyFixnum unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return input.getRuntime().newFixnum(input.unmarshalInt()); }
public static RubyFixnum unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return input.getRuntime().newFixnum(input.unmarshalInt()); }
public ByteList unmarshalString() throws IOException { int length = unmarshalInt(); byte[] buffer = new byte[length]; int readLength = 0; while (readLength < length) { int read = inputStream.read(buffer, readLength, length - readLength); if (read == -1) { throw getRuntime().newArgumentError("marshal data too short"); } readLength += read; } return new ByteList(buffer,false); }
public ByteList unmarshalString() throws IOException { int length = unmarshalInt(); byte[] buffer = new byte[length]; int readLength = 0; while (readLength < length) { int read = inputStream.read(buffer, readLength, length - readLength); if (read == -1) { throw getRuntime().newArgumentError("marshal data too short"); } readLength += read; } return new ByteList(buffer,false); }
public ByteList unmarshalString() throws IOException { int length = unmarshalInt(); byte[] buffer = new byte[length]; int readLength = 0; while (readLength < length) { int read = inputStream.read(buffer, readLength, length - readLength); if (read == -1) { throw getRuntime().newArgumentError("marshal data too short"); } readLength += read; } return new ByteList(buffer,false); }
public ByteList unmarshalString() throws IOException { int length = unmarshalInt(); byte[] buffer = new byte[length]; int readLength = 0; while (readLength < length) { int read = inputStream.read(buffer, readLength, length - readLength); if (read == -1) { throw getRuntime().newArgumentError("marshal data too short"); } readLength += read; } return new ByteList(buffer,false); }
public static RubyArray unmarshalFrom(UnmarshalStream input) throws IOException { Ruby runtime = input.getRuntime(); int size = input.unmarshalInt(); // we create this now with an empty, nulled array so it's available for links in the marshal data RubyArray result = newBlankArray(runtime, size); input.registerLinkTarget(result); for (int i = 0; i < size; i++) { result.store(i, input.unmarshalObject()); } return result; }
public static RubyArray unmarshalFrom(UnmarshalStream input) throws IOException { Ruby runtime = input.getRuntime(); int size = input.unmarshalInt(); // we create this now with an empty, nulled array so it's available for links in the marshal data RubyArray result = newBlankArray(runtime, size); input.registerLinkTarget(result); for (int i = 0; i < size; i++) { result.store(i, input.unmarshalObject()); } return result; }
public static RubyArray unmarshalFrom(UnmarshalStream input) throws IOException { int size = input.unmarshalInt(); // we create this now with an empty, nulled array so it's available for links in the marshal data RubyArray result = input.getRuntime().newArray(size); input.registerLinkTarget(result); for (int i = 0; i < size; i++) { result.append(input.unmarshalObject()); } return result; }
public static RubyArray unmarshalFrom(UnmarshalStream input) throws IOException { int size = input.unmarshalInt(); // we create this now with an empty, nulled array so it's available for links in the marshal data RubyArray result = input.getRuntime().newArray(size); input.registerLinkTarget(result); for (int i = 0; i < size; i++) { result.append(input.unmarshalObject()); } return result; }
public static RubyHash unmarshalFrom(UnmarshalStream input, boolean defaultValue) throws IOException { RubyHash result = newHash(input.getRuntime()); input.registerLinkTarget(result); int size = input.unmarshalInt(); for (int i = 0; i < size; i++) { result.fastASetCheckString(input.getRuntime(), input.unmarshalObject(), input.unmarshalObject()); } if (defaultValue) result.default_value_set(input.unmarshalObject()); return result; }
public static RubyHash unmarshalFrom(UnmarshalStream input, boolean defaultValue) throws IOException { RubyHash result = newHash(input.getRuntime()); input.registerLinkTarget(result); int size = input.unmarshalInt(); for (int i = 0; i < size; i++) { result.fastASetCheckString(input.getRuntime(), input.unmarshalObject(), input.unmarshalObject()); } if (defaultValue) result.default_value_set(input.unmarshalObject()); return result; }
public static RubyHash unmarshalFrom(UnmarshalStream input, boolean defaultValue) throws IOException { RubyHash result = newHash(input.getRuntime()); input.registerLinkTarget(result); int size = input.unmarshalInt(); for (int i = 0; i < size; i++) { result.fastASetCheckString(input.getRuntime(), input.unmarshalObject(), input.unmarshalObject()); } if (defaultValue) result.default_value_set(input.unmarshalObject()); return result; }
public static RubyHash unmarshalFrom(UnmarshalStream input, boolean defaultValue) throws IOException { RubyHash result = newHash(input.getRuntime()); input.registerLinkTarget(result); int size = input.unmarshalInt(); for (int i = 0; i < size; i++) { result.fastASetCheckString(input.getRuntime(), input.unmarshalObject(), input.unmarshalObject()); } if (defaultValue) result.default_value_set(input.unmarshalObject()); return result; }