Package xyz.cofe.text
Class BytesDump.Decode
- java.lang.Object
-
- xyz.cofe.text.BytesDump.Decode
-
- Enclosing class:
- BytesDump
public static class BytesDump.Decode extends java.lang.ObjectДекодирование очередной порции байтов
-
-
Constructor Summary
Constructors Constructor Description Decode(byte[] bytes, int offset, int length, int pointer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()intgetLength()intgetOffset()intgetPointer()java.util.Optional<byte[]>lookup(int length)Просмотр байтовjava.util.Optional<xyz.cofe.fn.Tuple3<byte[],java.lang.Integer,java.lang.Integer>>lookupBytes(int len)Просмотр байтовjava.util.Optional<BytesDump.Decoded>respone(int length, java.lang.String message)Формирование расшифровки
-
-
-
Method Detail
-
getBytes
public byte[] getBytes()
-
getOffset
public int getOffset()
-
getLength
public int getLength()
-
getPointer
public int getPointer()
-
lookupBytes
public java.util.Optional<xyz.cofe.fn.Tuple3<byte[],java.lang.Integer,java.lang.Integer>> lookupBytes(int len)
Просмотр байтов- Parameters:
len- кол-во просматриваемых байтов- Returns:
- сегмент массива: массив, указатель, кол-во доступных байтов
-
lookup
public java.util.Optional<byte[]> lookup(int length)
Просмотр байтов- Parameters:
length- кол-во просматриваемых байтов- Returns:
- массив байтов
-
respone
public java.util.Optional<BytesDump.Decoded> respone(int length, java.lang.String message)
Формирование расшифровки- Parameters:
length- кол-во расшифрованных байтmessage- описание- Returns:
- расшифровка
-
-