protected static class BaseBytes.ByteSet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long[] |
map |
Constructor and Description |
---|
ByteSet(PyBuffer bytes)
Construct a set from a byte oriented view.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(byte b)
Test to see if the byte is in the set.
|
boolean |
contains(int b)
Test to see if the byte (expressed as an integer) is in the set.
|
public ByteSet(PyBuffer bytes)
bytes
- to be in the set.public boolean contains(byte b)
b
- value of the bytepublic boolean contains(int b)
b
- integer value of the bytejava.lang.ArrayIndexOutOfBoundsException
- if b%gt;255 or b<0