public static ByteBuffer Encode(this Encoding e, string str) { return(ByteBuffer.Wrap(e.GetBytes(str))); }
public static ByteBuffer Encode(this Encoding e, CharSequence str) { return(ByteBuffer.Wrap(e.GetBytes(str.ToString()))); }