push overloads

Synopses

Declared in <folly/io/Cursor.h>

Write a range of bytes to the cursor.

void
push(ByteRange buf);

Copy len bytes from a cursor and write them to this cursor.

void
push(
    Cursor cursor,
    size_t len);

Write bytes to the cursor.

void
push(
    uint8_t const* buf,
    size_t len);

Exceptions

Name

Thrown on

std::out_of_range

if there isn't enough space in the cursor.

Parameters

Name

Description

buf

The bytes to write.

cursor

The source cursor to read from.

len

The number of bytes to copy.

Created with MrDocs