Class PlatformBigEndianInputStreamImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.memory.PlatformInputStreamImpl
-
- org.apache.ignite.internal.processors.platform.memory.PlatformBigEndianInputStreamImpl
-
- All Implemented Interfaces:
BinaryPositionReadable,BinaryInputStream,BinaryStream,PlatformInputStream
public class PlatformBigEndianInputStreamImpl extends PlatformInputStreamImpl
Interop input stream implementation working with BIG ENDIAN architecture.
-
-
Constructor Summary
Constructors Constructor Description PlatformBigEndianInputStreamImpl(PlatformMemory mem)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytereadBytePositioned(int pos)Read byte at the given position.charreadChar()Read char value.char[]readCharArray(int cnt)Read char array.doublereadDouble()Read double value.double[]readDoubleArray(int cnt)Read double array.floatreadFloat()Read float value.float[]readFloatArray(int cnt)Read float array.intreadInt()Read int value.int[]readIntArray(int cnt)Read int array.intreadIntPositioned(int pos)Read integer at the given position.longreadLong()Read long value.long[]readLongArray(int cnt)Read long array.shortreadShort()Read short value.short[]readShortArray(int cnt)Read short array.shortreadShortPositioned(int pos)Read short at the given position.-
Methods inherited from class org.apache.ignite.internal.processors.platform.memory.PlatformInputStreamImpl
array, arrayCopy, capacity, hasArray, offheapPointer, position, position, rawOffheapPointer, read, readBoolean, readBooleanArray, readByte, readByteArray, remaining, synchronize
-
-
-
-
Constructor Detail
-
PlatformBigEndianInputStreamImpl
public PlatformBigEndianInputStreamImpl(PlatformMemory mem)
Constructor.- Parameters:
mem- Memory chunk.
-
-
Method Detail
-
readShort
public short readShort()
Read short value.- Specified by:
readShortin interfaceBinaryInputStream- Overrides:
readShortin classPlatformInputStreamImpl- Returns:
- Short value.
-
readShortArray
public short[] readShortArray(int cnt)
Read short array.- Specified by:
readShortArrayin interfaceBinaryInputStream- Overrides:
readShortArrayin classPlatformInputStreamImpl- Parameters:
cnt- Expected item count.- Returns:
- Short array.
-
readChar
public char readChar()
Read char value.- Specified by:
readCharin interfaceBinaryInputStream- Overrides:
readCharin classPlatformInputStreamImpl- Returns:
- Char value.
-
readCharArray
public char[] readCharArray(int cnt)
Read char array.- Specified by:
readCharArrayin interfaceBinaryInputStream- Overrides:
readCharArrayin classPlatformInputStreamImpl- Parameters:
cnt- Expected item count.- Returns:
- Char array.
-
readInt
public int readInt()
Read int value.- Specified by:
readIntin interfaceBinaryInputStream- Overrides:
readIntin classPlatformInputStreamImpl- Returns:
- Int value.
-
readBytePositioned
public byte readBytePositioned(int pos)
Read byte at the given position.- Specified by:
readBytePositionedin interfaceBinaryPositionReadable- Overrides:
readBytePositionedin classPlatformInputStreamImpl- Parameters:
pos- Position.- Returns:
- Value.
-
readShortPositioned
public short readShortPositioned(int pos)
Read short at the given position.- Specified by:
readShortPositionedin interfaceBinaryPositionReadable- Overrides:
readShortPositionedin classPlatformInputStreamImpl- Parameters:
pos- Position.- Returns:
- Value.
-
readIntPositioned
public int readIntPositioned(int pos)
Read integer at the given position.- Specified by:
readIntPositionedin interfaceBinaryPositionReadable- Overrides:
readIntPositionedin classPlatformInputStreamImpl- Parameters:
pos- Position.- Returns:
- Value.
-
readIntArray
public int[] readIntArray(int cnt)
Read int array.- Specified by:
readIntArrayin interfaceBinaryInputStream- Overrides:
readIntArrayin classPlatformInputStreamImpl- Parameters:
cnt- Expected item count.- Returns:
- Int array.
-
readFloat
public float readFloat()
Read float value.- Specified by:
readFloatin interfaceBinaryInputStream- Overrides:
readFloatin classPlatformInputStreamImpl- Returns:
- Float value.
-
readFloatArray
public float[] readFloatArray(int cnt)
Read float array.- Specified by:
readFloatArrayin interfaceBinaryInputStream- Overrides:
readFloatArrayin classPlatformInputStreamImpl- Parameters:
cnt- Expected item count.- Returns:
- Float array.
-
readLong
public long readLong()
Read long value.- Specified by:
readLongin interfaceBinaryInputStream- Overrides:
readLongin classPlatformInputStreamImpl- Returns:
- Long value.
-
readLongArray
public long[] readLongArray(int cnt)
Read long array.- Specified by:
readLongArrayin interfaceBinaryInputStream- Overrides:
readLongArrayin classPlatformInputStreamImpl- Parameters:
cnt- Expected item count.- Returns:
- Long array.
-
readDouble
public double readDouble()
Read double value.- Specified by:
readDoublein interfaceBinaryInputStream- Overrides:
readDoublein classPlatformInputStreamImpl- Returns:
- Double value.
-
readDoubleArray
public double[] readDoubleArray(int cnt)
Read double array.- Specified by:
readDoubleArrayin interfaceBinaryInputStream- Overrides:
readDoubleArrayin classPlatformInputStreamImpl- Parameters:
cnt- Expected item count.- Returns:
- Double array.
-
-