Sharpen.ByteBuffer.Wrap C# (CSharp) Method

Wrap() public static method

public static Wrap ( byte buf ) : ByteBuffer
buf byte
return ByteBuffer
        public static ByteBuffer Wrap(byte[] buf)
        {
            return new ByteBuffer (buf, 0, buf.Length);
        }

Same methods

ByteBuffer::Wrap ( byte buf, int start, int len ) : ByteBuffer

Usage Example

Example #1
0
 public static ByteBuffer Encode(this Encoding e, string str)
 {
     return(ByteBuffer.Wrap(e.GetBytes(str)));
 }
All Usage Examples Of Sharpen.ByteBuffer::Wrap