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
Декодирование очередной порции байтов
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Decode(byte[] bytes, int offset, int length, int pointer) -
Method Summary
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)Формирование расшифровки
-
Field Details
-
Constructor Details
-
Decode
public Decode(byte[] bytes, int offset, int length, int pointer)
-
-
Method Details
-
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
Формирование расшифровки- Parameters:
length- кол-во расшифрованных байтmessage- описание- Returns:
- расшифровка
-