Lilly
01/12/2021, 8:52 PMZach Klippenstein (he/him) [MOD]
01/13/2021, 1:46 AMZach Klippenstein (he/him) [MOD]
01/13/2021, 1:48 AMreadByteString(133)
to get 133-byte bytestrings (ByteString
is essentially an immutable byte array): https://square.github.io/okio/2.x/okio/okio/-buffered-source/read-byte-string.htmlLilly
01/13/2021, 2:36 AMjessewilson
01/13/2021, 3:36 AMjessewilson
01/13/2021, 3:36 AMjessewilson
01/13/2021, 3:36 AMLilly
01/13/2021, 12:51 PMZach Klippenstein (he/him) [MOD]
01/13/2021, 3:18 PMread
method: https://square.github.io/okio/2.x/okio/okio/-source/read.html
The javadoc answers your question.jessewilson
01/13/2021, 4:04 PMLilly
01/13/2021, 4:59 PMYou could create a 2nd Buffer and read 133 bytes from the first into the secondThats exactly what I was looking for. I was just not sure what you meant with "read" but the
read
method is consuming the bytes from the original buffer and that'w what I need. I'm happy. Thanks a lot guys 🙏