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

#include <string-stream.h>

Inheritance diagram for v8::internal::FixedStringAllocator:
Collaboration diagram for v8::internal::FixedStringAllocator:

Public Member Functions

 FixedStringAllocator (char *buffer, unsigned length)
 
 ~FixedStringAllocator () override=default
 
 FixedStringAllocator (const FixedStringAllocator &)=delete
 
FixedStringAllocatoroperator= (const FixedStringAllocator &)=delete
 
char * allocate (unsigned bytes) override
 
char * grow (unsigned *bytes) override
 
- Public Member Functions inherited from v8::internal::StringAllocator
virtual ~StringAllocator ()=default
 

Private Attributes

char * buffer_
 
unsigned length_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ FixedStringAllocator() [1/2]

v8::internal::FixedStringAllocator::FixedStringAllocator ( char * buffer,
unsigned length )
inline

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

◆ ~FixedStringAllocator()

v8::internal::FixedStringAllocator::~FixedStringAllocator ( )
overridedefault

◆ FixedStringAllocator() [2/2]

v8::internal::FixedStringAllocator::FixedStringAllocator ( const FixedStringAllocator & )
delete

Member Function Documentation

◆ allocate()

char * v8::internal::FixedStringAllocator::allocate ( unsigned bytes)
overridevirtual

Implements v8::internal::StringAllocator.

Definition at line 26 of file string-stream.cc.

◆ grow()

char * v8::internal::FixedStringAllocator::grow ( unsigned * bytes)
overridevirtual

Implements v8::internal::StringAllocator.

Definition at line 31 of file string-stream.cc.

◆ operator=()

FixedStringAllocator & v8::internal::FixedStringAllocator::operator= ( const FixedStringAllocator & )
delete

Member Data Documentation

◆ buffer_

char* v8::internal::FixedStringAllocator::buffer_
private

Definition at line 59 of file string-stream.h.

◆ length_

unsigned v8::internal::FixedStringAllocator::length_
private

Definition at line 60 of file string-stream.h.


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