/** * Used by NIO or AIO transports */ public int tightMarshal1(Object o, BooleanStream bs) throws IOException { int size = 1; if (o != null) { DataStructure c = (DataStructure)o; byte type = c.getDataStructureType(); DataStreamMarshaller dsm = dataMarshallers[type & 0xFF]; if (dsm == null) { throw new IOException("Unknown data type: " + type); } size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize(); } return size; }
public int tightMarshalNestedObject1(DataStructure o, BooleanStream bs) throws IOException { bs.writeBoolean(o != null); if (o == null) { return 0; } if (o.isMarshallAware()) { // MarshallAware ma = (MarshallAware)o; ByteSequence sequence = null; // sequence=ma.getCachedMarshalledForm(this); bs.writeBoolean(sequence != null); if (sequence != null) { return 1 + sequence.getLength(); } } byte type = o.getDataStructureType(); DataStreamMarshaller dsm = dataMarshallers[type & 0xFF]; if (dsm == null) { throw new IOException("Unknown data type: " + type); } return 1 + dsm.tightMarshal1(this, o, bs); }
size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize();
size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize();
/** * Used by NIO or AIO transports */ public int tightMarshal1(Object o, BooleanStream bs) throws IOException { int size = 1; if (o != null) { DataStructure c = (DataStructure)o; byte type = c.getDataStructureType(); DataStreamMarshaller dsm = dataMarshallers[type & 0xFF]; if (dsm == null) { throw new IOException("Unknown data type: " + type); } size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize(); } return size; }
/** * Used by NIO or AIO transports */ public int tightMarshal1(Object o, BooleanStream bs) throws IOException { int size = 1; if (o != null) { DataStructure c = (DataStructure)o; byte type = c.getDataStructureType(); DataStreamMarshaller dsm = dataMarshallers[type & 0xFF]; if (dsm == null) { throw new IOException("Unknown data type: " + type); } size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize(); } return size; }
/** * Used by NIO or AIO transports */ public int tightMarshal1(Object o, BooleanStream bs) throws IOException { int size = 1; if (o != null) { DataStructure c = (DataStructure)o; byte type = c.getDataStructureType(); DataStreamMarshaller dsm = dataMarshallers[type & 0xFF]; if (dsm == null) { throw new IOException("Unknown data type: " + type); } size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize(); } return size; }
/** * Used by NIO or AIO transports */ public int tightMarshal1(Object o, BooleanStream bs) throws IOException { int size = 1; if (o != null) { DataStructure c = (DataStructure)o; byte type = c.getDataStructureType(); DataStreamMarshaller dsm = (DataStreamMarshaller)dataMarshallers[type & 0xFF]; if (dsm == null) { throw new IOException("Unknown data type: " + type); } size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize(); } return size; }
public int tightMarshalNestedObject1(DataStructure o, BooleanStream bs) throws IOException { bs.writeBoolean(o != null); if (o == null) { return 0; } if (o.isMarshallAware()) { // MarshallAware ma = (MarshallAware)o; ByteSequence sequence = null; // sequence=ma.getCachedMarshalledForm(this); bs.writeBoolean(sequence != null); if (sequence != null) { return 1 + sequence.getLength(); } } byte type = o.getDataStructureType(); DataStreamMarshaller dsm = dataMarshallers[type & 0xFF]; if (dsm == null) { throw new IOException("Unknown data type: " + type); } return 1 + dsm.tightMarshal1(this, o, bs); }
public int tightMarshalNestedObject1(DataStructure o, BooleanStream bs) throws IOException { bs.writeBoolean(o != null); if (o == null) { return 0; } if (o.isMarshallAware()) { // MarshallAware ma = (MarshallAware)o; ByteSequence sequence = null; // sequence=ma.getCachedMarshalledForm(this); bs.writeBoolean(sequence != null); if (sequence != null) { return 1 + sequence.getLength(); } } byte type = o.getDataStructureType(); DataStreamMarshaller dsm = dataMarshallers[type & 0xFF]; if (dsm == null) { throw new IOException("Unknown data type: " + type); } return 1 + dsm.tightMarshal1(this, o, bs); }
public int tightMarshalNestedObject1(DataStructure o, BooleanStream bs) throws IOException { bs.writeBoolean(o != null); if (o == null) { return 0; } if (o.isMarshallAware()) { // MarshallAware ma = (MarshallAware)o; ByteSequence sequence = null; // sequence=ma.getCachedMarshalledForm(this); bs.writeBoolean(sequence != null); if (sequence != null) { return 1 + sequence.getLength(); } } byte type = o.getDataStructureType(); DataStreamMarshaller dsm = (DataStreamMarshaller)dataMarshallers[type & 0xFF]; if (dsm == null) { throw new IOException("Unknown data type: " + type); } return 1 + dsm.tightMarshal1(this, o, bs); }
public int tightMarshalNestedObject1(DataStructure o, BooleanStream bs) throws IOException { bs.writeBoolean(o != null); if (o == null) { return 0; } if (o.isMarshallAware()) { // MarshallAware ma = (MarshallAware)o; ByteSequence sequence = null; // sequence=ma.getCachedMarshalledForm(this); bs.writeBoolean(sequence != null); if (sequence != null) { return 1 + sequence.getLength(); } } byte type = o.getDataStructureType(); DataStreamMarshaller dsm = dataMarshallers[type & 0xFF]; if (dsm == null) { throw new IOException("Unknown data type: " + type); } return 1 + dsm.tightMarshal1(this, o, bs); }
size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize();
size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize();
size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize();
size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize();
size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize();
size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize();
size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize();
size += dsm.tightMarshal1(this, c, bs); size += bs.marshalledSize();