@NonNull
    @Override
    public ByteBuffer toBuffer() {
        return mBuffer;
    }
Constructs a {@link ByteStream} by a {@link ByteBuffer}.

@param buffer A byte buffer.
netbare-injector/src/main/java/com/github/megatronking/netbare/stream/BufferStream.java