Package icyllis.modernui.util
Class IOStreamParcel
java.lang.Object
icyllis.modernui.util.Parcel
icyllis.modernui.util.IOStreamParcel
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class icyllis.modernui.util.Parcel
mNativeBuffer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
ensureCapacity
(int len) void
limit
(int newLimit) void
position
(int newPosition) byte
readByte()
void
readBytes
(byte[] dst, int off, int len) int
readInt()
long
readLong()
short
void
writeByte
(int v) Write a byte value into the parcel.void
writeBytes
(byte[] src, int off, int len) void
writeInt
(int v) Write an integer value into the parcel.void
writeLong
(long v) Write a long integer value into the parcel.void
writeShort
(int v) Write a short integer value into the parcel.Methods inherited from class icyllis.modernui.util.Parcel
capacity, freeData, limit, position, readArray, readBoolean, readBooleanArray, readByteArray, readBytes, readChar, readCharArray, readCharSequence, readDataSet, readDouble, readDoubleArray, readFloat, readFloatArray, readInstant, readIntArray, readLongArray, readParcelable, readParcelable0, readParcelableCreator, readShortArray, readString, readString16, readString8, readUUID, readValue, setCapacity, writeArray, writeBoolean, writeBooleanArray, writeByteArray, writeByteArray, writeBytes, writeChar, writeCharArray, writeCharSequence, writeDataSet, writeDouble, writeDoubleArray, writeFloat, writeFloatArray, writeInstant, writeIntArray, writeList, writeLongArray, writeParcelable, writeParcelableCreator, writeShortArray, writeString, writeString16, writeString8, writeUUID, writeValue
-
Constructor Details
-
IOStreamParcel
-
-
Method Details
-
ensureCapacity
protected void ensureCapacity(int len) - Overrides:
ensureCapacity
in classParcel
-
position
public void position(int newPosition) -
limit
public void limit(int newLimit) -
writeBytes
public void writeBytes(byte[] src, int off, int len) - Overrides:
writeBytes
in classParcel
-
writeByte
public void writeByte(int v) Description copied from class:Parcel
Write a byte value into the parcel. -
writeShort
public void writeShort(int v) Description copied from class:Parcel
Write a short integer value into the parcel.- Overrides:
writeShort
in classParcel
-
writeInt
public void writeInt(int v) Description copied from class:Parcel
Write an integer value into the parcel. -
writeLong
public void writeLong(long v) Description copied from class:Parcel
Write a long integer value into the parcel. -
readBytes
public void readBytes(byte[] dst, int off, int len) -
readByte
public byte readByte() -
readShort
public short readShort() -
readInt
public int readInt() -
readLong
public long readLong() -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-