Wrap() public static method

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