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

#include <snapshot-source-sink.h>

Collaboration diagram for v8::internal::SnapshotByteSink:

Public Member Functions

 SnapshotByteSink ()=default
 
 SnapshotByteSink (int initial_size)
 
 ~SnapshotByteSink ()=default
 
void Put (uint8_t b, const char *description)
 
void PutN (int number_of_bytes, const uint8_t v, const char *description)
 
void PutUint30 (uint32_t integer, const char *description)
 
void PutUint32 (uint32_t integer, const char *description)
 
void PutRaw (const uint8_t *data, int number_of_bytes, const char *description)
 
void Append (const SnapshotByteSink &other)
 
int Position () const
 
const std::vector< uint8_t > * data () const
 

Private Attributes

std::vector< uint8_t > data_
 

Detailed Description

Sink to write snapshot files to.

Users must implement actual storage or i/o.

Definition at line 128 of file snapshot-source-sink.h.

Constructor & Destructor Documentation

◆ SnapshotByteSink() [1/2]

v8::internal::SnapshotByteSink::SnapshotByteSink ( )
default

◆ SnapshotByteSink() [2/2]

v8::internal::SnapshotByteSink::SnapshotByteSink ( int initial_size)
inlineexplicit

Definition at line 131 of file snapshot-source-sink.h.

◆ ~SnapshotByteSink()

v8::internal::SnapshotByteSink::~SnapshotByteSink ( )
default

Member Function Documentation

◆ Append()

void v8::internal::SnapshotByteSink::Append ( const SnapshotByteSink & other)

Definition at line 43 of file snapshot-source-sink.cc.

Here is the caller graph for this function:

◆ data()

const std::vector< uint8_t > * v8::internal::SnapshotByteSink::data ( ) const
inline

Definition at line 149 of file snapshot-source-sink.h.

Here is the caller graph for this function:

◆ Position()

int v8::internal::SnapshotByteSink::Position ( ) const
inline

Definition at line 147 of file snapshot-source-sink.h.

◆ Put()

void v8::internal::SnapshotByteSink::Put ( uint8_t b,
const char * description )
inline

Definition at line 135 of file snapshot-source-sink.h.

Here is the caller graph for this function:

◆ PutN()

void v8::internal::SnapshotByteSink::PutN ( int number_of_bytes,
const uint8_t v,
const char * description )

Definition at line 16 of file snapshot-source-sink.cc.

◆ PutRaw()

void v8::internal::SnapshotByteSink::PutRaw ( const uint8_t * data,
int number_of_bytes,
const char * description )

Definition at line 35 of file snapshot-source-sink.cc.

Here is the caller graph for this function:

◆ PutUint30()

void v8::internal::SnapshotByteSink::PutUint30 ( uint32_t integer,
const char * description )

Definition at line 21 of file snapshot-source-sink.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PutUint32()

void v8::internal::SnapshotByteSink::PutUint32 ( uint32_t integer,
const char * description )
inline

Definition at line 140 of file snapshot-source-sink.h.

Here is the call graph for this function:

Member Data Documentation

◆ data_

std::vector<uint8_t> v8::internal::SnapshotByteSink::data_
private

Definition at line 152 of file snapshot-source-sink.h.


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