Property | Type | Description | |
---|---|---|---|
Empty | ByteString |
Method | Description | |
---|---|---|
FromArray ( byte array ) : ByteString |
Creates a new ByteString by copying a byte array.
|
|
FromArray ( byte array, int offset, int length ) : ByteString |
Creates a new ByteString by copying length bytes starting at offset from an Array.
|
|
FromByteBuffer ( ByteBuffer buffer ) : ByteString | ||
FromString ( string str ) : ByteString |
Creates a new ByteString which will contain the UTF-8 representation of the given String
|
|
FromString ( string str, |
Creates a new ByteString which will contain the representation of the given String in the given charset
|
|
NewBuilder ( ) : ByteStringBuilder |
Method | Description | |
---|---|---|
Compare ( ByteString b1, ByteString b2 ) : int | ||
Create ( ByteString1 b, ByteStrings bs ) : ByteString |
public FromArray ( byte array, int offset, int length ) : ByteString | ||
array | byte | |
offset | int | |
length | int | |
return | ByteString |
public static FromByteBuffer ( ByteBuffer buffer ) : ByteString | ||
buffer | ByteBuffer | |
return | ByteString |
public static FromString ( string str ) : ByteString | ||
str | string | |
return | ByteString |
public static FromString ( string str, |
||
str | string | |
encoding | ||
return | ByteString |
public static NewBuilder ( ) : ByteStringBuilder | ||
return | ByteStringBuilder |