WPILibC++  2020.3.2-60-g3011ebe
wpi::uv::Buffer Class Reference

Data buffer. More...

#include <Buffer.h>

Inheritance diagram for wpi::uv::Buffer:

Public Member Functions

 Buffer (const uv_buf_t &oth)
 
 Buffer (StringRef str)
 
 Buffer (ArrayRef< uint8_t > arr)
 
 Buffer (char *base_, size_t len_)
 
 Buffer (const char *base_, size_t len_)
 
ArrayRef< char > data () const
 
MutableArrayRef< char > data ()
 
 operator ArrayRef< char > () const
 
 operator MutableArrayRef< char > ()
 
Buffer Dup () const
 
void Deallocate ()
 
Buffer Move ()
 

Static Public Member Functions

static Buffer Allocate (size_t size)
 
static Buffer Dup (StringRef in)
 
static Buffer Dup (ArrayRef< uint8_t > in)
 

Friends

void swap (Buffer &a, Buffer &b)
 

Detailed Description

Data buffer.

Convenience wrapper around uv_buf_t.


The documentation for this class was generated from the following file: