class PlatformBigEndianInputStreamImpl extends PlatformInputStreamImpl {
    /**
     * Constructor.
     *
     * @param mem Memory chunk.
     */
    public PlatformBigEndianInputStreamImpl(PlatformMemory mem) {
        super(mem);
    }

    /** {@inheritDoc} */
    @Override public short readShort() {
        return Short.reverseBytes(super.readShort());
    }

    /** {@inheritDoc} */
    @Override public short[] readShortArray(int cnt) {
        short[] res = super.readShortArray(cnt);

        for (int i = 0; i < cnt; i++)
            res[i] = Short.reverseBytes(res[i]);

        return res;
    }

    /** {@inheritDoc} */
    @Override public char readChar() {
        return Character.reverseBytes(super.readChar());
    }

    /** {@inheritDoc} */
    @Override public char[] readCharArray(int cnt) {
        char[] res = super.readCharArray(cnt);

        for (int i = 0; i < cnt; i++)
            res[i] = Character.reverseBytes(res[i]);

        return res;
    }

    /** {@inheritDoc} */
    @Override public int readInt() {
        return Integer.reverseBytes(super.readInt());
    }

    /** {@inheritDoc} */
    @Override public byte readBytePositioned(int pos) {
        return super.readBytePositioned(pos);
    }

    /** {@inheritDoc} */
    @Override public short readShortPositioned(int pos) {
        return Short.reverseBytes(super.readShortPositioned(pos));
    }

    /** {@inheritDoc} */
    @Override public int readIntPositioned(int pos) {
        return Integer.reverseBytes(super.readIntPositioned(pos));
    }

    /** {@inheritDoc} */
    @Override public int[] readIntArray(int cnt) {<FILL_FUNCTION_BODY>}

    /** {@inheritDoc} */
    @Override public float readFloat() {
        return Float.intBitsToFloat(Integer.reverseBytes(Float.floatToIntBits(super.readFloat())));
    }

    /** {@inheritDoc} */
    @Override public float[] readFloatArray(int cnt) {
        float[] res = super.readFloatArray(cnt);

        for (int i = 0; i < cnt; i++)
            res[i] = Float.intBitsToFloat(Integer.reverseBytes(Float.floatToIntBits(res[i])));

        return res;
    }

    /** {@inheritDoc} */
    @Override public long readLong() {
        return Long.reverseBytes(super.readLong());
    }

    /** {@inheritDoc} */
    @Override public long[] readLongArray(int cnt) {
        long[] res = super.readLongArray(cnt);

        for (int i = 0; i < cnt; i++)
            res[i] = Long.reverseBytes(res[i]);

        return res;
    }

    /** {@inheritDoc} */
    @Override public double readDouble() {
        return Double.longBitsToDouble(Long.reverseBytes(Double.doubleToLongBits(super.readDouble())));
    }

    /** {@inheritDoc} */
    @Override public double[] readDoubleArray(int cnt) {
        double[] res = super.readDoubleArray(cnt);

        for (int i = 0; i < cnt; i++)
            res[i] = Double.longBitsToDouble(Long.reverseBytes(Double.doubleToLongBits(res[i])));

        return res;
    }
}

        int[] res = super.readIntArray(cnt);

        for (int i = 0; i < cnt; i++)
            res[i] = Integer.reverseBytes(res[i]);

        return res;
    
<methods>public void <init>(org.apache.ignite.internal.processors.platform.memory.PlatformMemory) ,public byte[] array() ,public byte[] arrayCopy() ,public int capacity() ,public boolean hasArray() ,public long offheapPointer() ,public int position() ,public void position(int) ,public long rawOffheapPointer() ,public int read(byte[], int, int) ,public boolean readBoolean() ,public boolean[] readBooleanArray(int) ,public byte readByte() ,public byte[] readByteArray(int) ,public byte readBytePositioned(int) ,public char readChar() ,public char[] readCharArray(int) ,public double readDouble() ,public double[] readDoubleArray(int) ,public float readFloat() ,public float[] readFloatArray(int) ,public int readInt() ,public int[] readIntArray(int) ,public int readIntPositioned(int) ,public long readLong() ,public long[] readLongArray(int) ,public short readShort() ,public short[] readShortArray(int) ,public short readShortPositioned(int) ,public int remaining() ,public void synchronize() <variables>private long data,private byte[] dataCopy,private int len,private final non-sealed org.apache.ignite.internal.processors.platform.memory.PlatformMemory mem,private int pos