v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StartupDataDecompressor Class Referenceabstract

#include <v8.h>

Public Member Functions

 StartupDataDecompressor ()
 
virtual ~StartupDataDecompressor ()
 
int Decompress ()
 

Protected Member Functions

virtual int DecompressData (char *raw_data, int *raw_data_size, const char *compressed_data, int compressed_data_size)=0
 

Detailed Description

A helper class for driving V8 startup data decompression. It is based on "CompressedStartupData" API functions from the V8 class. It isn't mandatory for an embedder to use this class, instead, API functions can be used directly.

For an example of the class usage, see the "shell.cc" sample application.

Definition at line 4457 of file v8.h.

Constructor & Destructor Documentation

Definition at line 265 of file api.cc.

References V8::GetCompressedStartupDataCount(), and NULL.

Definition at line 273 of file api.cc.

References v8::internal::DeleteArray(), and V8::GetCompressedStartupDataCount().

Member Function Documentation

virtual int DecompressData ( char *  raw_data,
int *  raw_data_size,
const char *  compressed_data,
int  compressed_data_size 
)
protectedpure virtual

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