Search in sources :

Example 1 with SerializationV1DataSerializable

use of com.hazelcast.internal.serialization.impl.SerializationV1DataSerializable in project hazelcast by hazelcast.

the class SerializationV1Portable method readPortable.

@Override
public void readPortable(PortableReader in) throws IOException {
    this.aByte = in.readByte("1");
    this.aBoolean = in.readBoolean("2");
    this.character = in.readChar("3");
    this.aShort = in.readShort("4");
    this.integer = in.readInt("5");
    this.aLong = in.readLong("6");
    this.aFloat = in.readFloat("7");
    this.aDouble = in.readDouble("8");
    this.string = in.readString("9");
    this.bytes = in.readByteArray("a1");
    this.booleans = in.readBooleanArray("a2");
    this.chars = in.readCharArray("a3");
    this.shorts = in.readShortArray("a4");
    this.ints = in.readIntArray("a5");
    this.longs = in.readLongArray("a6");
    this.floats = in.readFloatArray("a7");
    this.doubles = in.readDoubleArray("a8");
    this.strings = in.readStringArray("a9");
    this.innerPortable = in.readPortable("p");
    ObjectDataInput rawDataInput = in.getRawDataInput();
    boolean isNotNull = rawDataInput.readBoolean();
    if (isNotNull) {
        SerializationV1DataSerializable dataserializable = new SerializationV1DataSerializable();
        dataserializable.readData(rawDataInput);
        this.dataSerializable = dataserializable;
    }
}
Also used : ObjectDataInput(com.hazelcast.nio.ObjectDataInput) SerializationV1DataSerializable(com.hazelcast.internal.serialization.impl.SerializationV1DataSerializable)

Aggregations

SerializationV1DataSerializable (com.hazelcast.internal.serialization.impl.SerializationV1DataSerializable)1 ObjectDataInput (com.hazelcast.nio.ObjectDataInput)1