Searched refs:parsableByteArray (Results 1 – 3 of 3) sorted by relevance
67 private final ParsableByteArray parsableByteArray; field in Tx3gDecoder83 parsableByteArray = new ParsableByteArray(); in Tx3gDecoder()119 parsableByteArray.reset(bytes, length); in decode()120 String cueTextString = readSubtitleText(parsableByteArray); in decode()134 while (parsableByteArray.bytesLeft() >= SIZE_ATOM_HEADER) { in decode()135 int position = parsableByteArray.getPosition(); in decode()136 int atomSize = parsableByteArray.readInt(); in decode()137 int atomType = parsableByteArray.readInt(); in decode()139 assertTrue(parsableByteArray.bytesLeft() >= SIZE_SHORT); in decode()140 int styleRecordCount = parsableByteArray.readUnsignedShort(); in decode()[all …]
219 ParsableByteArray parsableByteArray = getTestDataArray(); in readingMovesPosition() local222 assertThat(parsableByteArray.getPosition()).isEqualTo(0); in readingMovesPosition()224 parsableByteArray.readUnsignedInt(); in readingMovesPosition()225 assertThat(parsableByteArray.getPosition()).isEqualTo(4); in readingMovesPosition()230 ParsableByteArray parsableByteArray = getTestDataArray(); in outOfBoundsThrows() local233 parsableByteArray.readUnsignedLongToLong(); in outOfBoundsThrows()234 assertThat(parsableByteArray.getPosition()).isEqualTo(TEST_DATA.length); in outOfBoundsThrows()237 parsableByteArray.readUnsignedInt(); in outOfBoundsThrows()246 ParsableByteArray parsableByteArray = getTestDataArray(); in modificationsAffectParsableArray() local249 byte[] data = parsableByteArray.data; in modificationsAffectParsableArray()[all …]
74 public void reset(ParsableByteArray parsableByteArray) { in reset() argument75 reset(parsableByteArray.data, parsableByteArray.limit()); in reset()76 setPosition(parsableByteArray.getPosition() * 8); in reset()