V8 Project
v8::internal::DummySnapshotSink Class Reference

#include <snapshot-source-sink.h>

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

Public Member Functions

 DummySnapshotSink ()
 
virtual ~DummySnapshotSink ()
 
virtual void Put (byte b, const char *description)
 
virtual int Position ()
 
- 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

int length_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ DummySnapshotSink()

v8::internal::DummySnapshotSink::DummySnapshotSink ( )
inline

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

◆ ~DummySnapshotSink()

virtual v8::internal::DummySnapshotSink::~DummySnapshotSink ( )
inlinevirtual

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

89 {}

Member Function Documentation

◆ Position()

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

Implements v8::internal::SnapshotByteSink.

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

91 { return length_; }

References length_.

◆ Put()

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

Implements v8::internal::SnapshotByteSink.

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

90 { length_++; }

References length_.

Member Data Documentation

◆ length_

int v8::internal::DummySnapshotSink::length_
private

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

Referenced by Position(), and Put().


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