v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8_inspector::protocol::Binary Class Reference

#include <string-util.h>

Collaboration diagram for v8_inspector::protocol::Binary:

Public Member Functions

 Binary ()
 
const uint8_t * data () const
 
size_t size () const
 
String toBase64 () const
 

Static Public Member Functions

static Binary fromBase64 (const String &base64, bool *success)
 
static Binary fromSpan (v8_crdtp::span< uint8_t > span)
 
static Binary fromSpan (v8::MemorySpan< const uint8_t > span)
 

Private Member Functions

 Binary (std::shared_ptr< std::vector< uint8_t > > bytes)
 

Private Attributes

std::shared_ptr< std::vector< uint8_t > > bytes_
 

Detailed Description

Definition at line 47 of file string-util.h.

Constructor & Destructor Documentation

◆ Binary() [1/2]

v8_inspector::protocol::Binary::Binary ( )
inline

Definition at line 49 of file string-util.h.

Here is the caller graph for this function:

◆ Binary() [2/2]

v8_inspector::protocol::Binary::Binary ( std::shared_ptr< std::vector< uint8_t > > bytes)
inlineexplicitprivate

Definition at line 66 of file string-util.h.

Member Function Documentation

◆ data()

const uint8_t * v8_inspector::protocol::Binary::data ( ) const
inline

Definition at line 51 of file string-util.h.

◆ fromBase64()

Binary v8_inspector::protocol::Binary::fromBase64 ( const String & base64,
bool * success )
static

Definition at line 59 of file string-util.cc.

Here is the call graph for this function:

◆ fromSpan() [1/2]

static Binary v8_inspector::protocol::Binary::fromSpan ( v8::MemorySpan< const uint8_t > span)
inlinestatic

Definition at line 58 of file string-util.h.

◆ fromSpan() [2/2]

static Binary v8_inspector::protocol::Binary::fromSpan ( v8_crdtp::span< uint8_t > span)
inlinestatic

Definition at line 55 of file string-util.h.

Here is the caller graph for this function:

◆ size()

size_t v8_inspector::protocol::Binary::size ( ) const
inline

Definition at line 52 of file string-util.h.

Here is the caller graph for this function:

◆ toBase64()

String v8_inspector::protocol::Binary::toBase64 ( ) const

Definition at line 34 of file string-util.cc.

Here is the call graph for this function:

Member Data Documentation

◆ bytes_

std::shared_ptr<std::vector<uint8_t> > v8_inspector::protocol::Binary::bytes_
private

Definition at line 64 of file string-util.h.


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