Class Endian.Little
- java.lang.Object
-
- com.hierynomus.protocol.commons.buffer.Endian
-
- com.hierynomus.protocol.commons.buffer.Endian.Little
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Little()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Buffer<T>>
longreadLong(Buffer<T> buffer)
<T extends Buffer<T>>
java.lang.StringreadNullTerminatedUtf16String(Buffer<T> buffer)
<T extends Buffer<T>>
intreadUInt16(Buffer<T> buffer)
<T extends Buffer<T>>
intreadUInt24(Buffer<T> buffer)
<T extends Buffer<T>>
longreadUInt32(Buffer<T> buffer)
<T extends Buffer<T>>
longreadUInt64(Buffer<T> buffer)
<T extends Buffer<T>>
java.lang.StringreadUtf16String(Buffer<T> buffer, int length)
java.lang.String
toString()
<T extends Buffer<T>>
voidwriteLong(Buffer<T> buffer, long longVal)
<T extends Buffer<T>>
voidwriteUInt16(Buffer<T> buffer, int uint16)
<T extends Buffer<T>>
voidwriteUInt24(Buffer<T> buffer, int uint24)
<T extends Buffer<T>>
voidwriteUInt32(Buffer<T> buffer, long uint32)
<T extends Buffer<T>>
voidwriteUInt64(Buffer<T> buffer, long uint64)
<T extends Buffer<T>>
voidwriteUtf16String(Buffer<T> buffer, java.lang.String string)
-
Methods inherited from class com.hierynomus.protocol.commons.buffer.Endian
readNullTerminatedUtf16String, readUtf16String, writeNullTerminatedUtf16String
-
-
-
-
Method Detail
-
writeUInt16
public <T extends Buffer<T>> void writeUInt16(Buffer<T> buffer, int uint16)
- Specified by:
writeUInt16
in classEndian
-
readUInt16
public <T extends Buffer<T>> int readUInt16(Buffer<T> buffer) throws Buffer.BufferException
- Specified by:
readUInt16
in classEndian
- Throws:
Buffer.BufferException
-
writeUInt24
public <T extends Buffer<T>> void writeUInt24(Buffer<T> buffer, int uint24)
- Specified by:
writeUInt24
in classEndian
-
readUInt24
public <T extends Buffer<T>> int readUInt24(Buffer<T> buffer) throws Buffer.BufferException
- Specified by:
readUInt24
in classEndian
- Throws:
Buffer.BufferException
-
writeUInt32
public <T extends Buffer<T>> void writeUInt32(Buffer<T> buffer, long uint32)
- Specified by:
writeUInt32
in classEndian
-
readUInt32
public <T extends Buffer<T>> long readUInt32(Buffer<T> buffer) throws Buffer.BufferException
- Specified by:
readUInt32
in classEndian
- Throws:
Buffer.BufferException
-
writeUInt64
public <T extends Buffer<T>> void writeUInt64(Buffer<T> buffer, long uint64)
- Specified by:
writeUInt64
in classEndian
-
readUInt64
public <T extends Buffer<T>> long readUInt64(Buffer<T> buffer) throws Buffer.BufferException
- Specified by:
readUInt64
in classEndian
- Throws:
Buffer.BufferException
-
readLong
public <T extends Buffer<T>> long readLong(Buffer<T> buffer) throws Buffer.BufferException
- Specified by:
readLong
in classEndian
- Throws:
Buffer.BufferException
-
readUtf16String
public <T extends Buffer<T>> java.lang.String readUtf16String(Buffer<T> buffer, int length) throws Buffer.BufferException
- Specified by:
readUtf16String
in classEndian
- Throws:
Buffer.BufferException
-
readNullTerminatedUtf16String
public <T extends Buffer<T>> java.lang.String readNullTerminatedUtf16String(Buffer<T> buffer) throws Buffer.BufferException
- Specified by:
readNullTerminatedUtf16String
in classEndian
- Throws:
Buffer.BufferException
-
writeUtf16String
public <T extends Buffer<T>> void writeUtf16String(Buffer<T> buffer, java.lang.String string)
- Specified by:
writeUtf16String
in classEndian
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-