v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32 Class Referenceabstract
Inheritance diagram for v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32:
Collaboration diagram for v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32:

Public Member Functions

 DecodeVarInt32 (size_t max_value, const char *field_name)
 
base::Vector< uint8_t > buffer () override
 
size_t ReadBytes (AsyncStreamingDecoder *streaming, base::Vector< const uint8_t > bytes) override
 
std::unique_ptr< DecodingStateNext (AsyncStreamingDecoder *streaming) override
 
virtual std::unique_ptr< DecodingStateNextWithValue (AsyncStreamingDecoder *streaming)=0
 
- Public Member Functions inherited from v8::internal::wasm::AsyncStreamingDecoder::DecodingState
virtual ~DecodingState ()=default
 
size_t offset () const
 
void set_offset (size_t value)
 
virtual bool is_finishing_allowed () const
 

Protected Attributes

uint8_t byte_buffer_ [kMaxVarInt32Size]
 
const size_t max_value_
 
const char *const field_name_
 
size_t value_ = 0
 
size_t bytes_consumed_ = 0
 

Detailed Description

Definition at line 406 of file streaming-decoder.cc.

Constructor & Destructor Documentation

◆ DecodeVarInt32()

v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32::DecodeVarInt32 ( size_t max_value,
const char * field_name )
inlineexplicit

Definition at line 408 of file streaming-decoder.cc.

Member Function Documentation

◆ buffer()

base::Vector< uint8_t > v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32::buffer ( )
inlineoverridevirtual

◆ Next()

std::unique_ptr< AsyncStreamingDecoder::DecodingState > v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32::Next ( AsyncStreamingDecoder * streaming)
overridevirtual

◆ NextWithValue()

virtual std::unique_ptr< DecodingState > v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32::NextWithValue ( AsyncStreamingDecoder * streaming)
pure virtual

◆ ReadBytes()

size_t v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32::ReadBytes ( AsyncStreamingDecoder * streaming,
base::Vector< const uint8_t > bytes )
overridevirtual

Reimplemented from v8::internal::wasm::AsyncStreamingDecoder::DecodingState.

Definition at line 563 of file streaming-decoder.cc.

Here is the call graph for this function:

Member Data Documentation

◆ byte_buffer_

uint8_t v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32::byte_buffer_[kMaxVarInt32Size]
protected

Definition at line 425 of file streaming-decoder.cc.

◆ bytes_consumed_

size_t v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32::bytes_consumed_ = 0
protected

Definition at line 431 of file streaming-decoder.cc.

◆ field_name_

const char* const v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32::field_name_
protected

Definition at line 429 of file streaming-decoder.cc.

◆ max_value_

const size_t v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32::max_value_
protected

Definition at line 428 of file streaming-decoder.cc.

◆ value_

size_t v8::internal::wasm::AsyncStreamingDecoder::DecodeVarInt32::value_ = 0
protected

Definition at line 430 of file streaming-decoder.cc.


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