Wrap() public static method

public static Wrap ( byte buf ) : ByteBuffer
buf byte
return ByteBuffer
Beispiel #1
0
 public static ByteBuffer Encode(this Encoding e, string str)
 {
     return(ByteBuffer.Wrap(e.GetBytes(str)));
 }
Beispiel #2
0
 public static ByteBuffer Encode(this Encoding e, CharSequence str)
 {
     return(ByteBuffer.Wrap(e.GetBytes(str.ToString())));
 }