V8 Project
v8::internal::ListSnapshotSink Class Reference

#include <snapshot-source-sink.h>

+ Inheritance diagram for v8::internal::ListSnapshotSink:
+ Collaboration diagram for v8::internal::ListSnapshotSink:

Public Member Functions

 ListSnapshotSink (i::List< byte > *data)
 
virtual void Put (byte b, const char *description) OVERRIDE
 
virtual int Position () OVERRIDE
 
- Public Member Functions inherited from v8::internal::SnapshotByteSink
virtual ~SnapshotByteSink ()
 
virtual void PutSection (int b, const char *description)
 
void PutInt (uintptr_t integer, const char *description)
 
void PutRaw (byte *data, int number_of_bytes, const char *description)
 
void PutBlob (byte *data, int number_of_bytes, const char *description)
 

Private Attributes

i::List< byte > * data_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ListSnapshotSink()

v8::internal::ListSnapshotSink::ListSnapshotSink ( i::List< byte > *  data)
inlineexplicit

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

112 : data_(data) {}

Member Function Documentation

◆ Position()

virtual int v8::internal::ListSnapshotSink::Position ( )
inlinevirtual

Implements v8::internal::SnapshotByteSink.

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

116 { return data_->length(); }

References data_.

◆ Put()

virtual void v8::internal::ListSnapshotSink::Put ( byte  b,
const char *  description 
)
inlinevirtual

Implements v8::internal::SnapshotByteSink.

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

113  {
114  data_->Add(b);
115  }
void Add(const T &element, AllocationPolicy allocator=AllocationPolicy())
Definition: list-inl.h:17

References v8::internal::List< T, AllocationPolicy >::Add(), and data_.

+ Here is the call graph for this function:

Member Data Documentation

◆ data_

i::List<byte>* v8::internal::ListSnapshotSink::data_
private

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

Referenced by Position(), and Put().


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