| Package | Description |
|---|---|
| io.pkts.buffer |
| Modifier and Type | Method and Description |
|---|---|
int |
BaseBuffer.indexOf(byte b) |
int |
EmptyBuffer.indexOf(byte b) |
int |
Buffer.indexOf(byte b) |
int |
BaseBuffer.indexOf(int maxBytes,
byte... bytes)
Same as
Buffer.readUntil(int, byte...) but instead of returning the
buffer with everything up until the specified byte it returns the index
instead. |
int |
EmptyBuffer.indexOf(int maxBytes,
byte... bytes) |
int |
Buffer.indexOf(int maxBytes,
byte... bytes)
Same as
Buffer.readUntil(int, byte...) but instead of returning the
buffer with everything up until the specified byte it returns the index
instead. |
Buffer |
BaseBuffer.readUntil(byte b)
Same as
#readUntil(4096, 'b')
Read until the specified byte is encountered and return a buffer
representing that section of the buffer. |
Buffer |
EmptyBuffer.readUntil(byte b)
Same as
#readUntil(4096, 'b')
Read until the specified byte is encountered and return a buffer
representing that section of the buffer. |
Buffer |
Buffer.readUntil(byte b)
Same as
#readUntil(4096, 'b')
Read until the specified byte is encountered and return a buffer
representing that section of the buffer. |
Buffer |
BaseBuffer.readUntil(int maxBytes,
byte... bytes)
Read until any of the specified bytes have been encountered or until we
have read a maximum amount of bytes.
|
Buffer |
EmptyBuffer.readUntil(int maxBytes,
byte... bytes) |
Buffer |
Buffer.readUntil(int maxBytes,
byte... bytes)
Read until any of the specified bytes have been encountered or until we
have read a maximum amount of bytes.
|
Copyright © 2021. All Rights Reserved.