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

#include <fixed-array.h>

Inheritance diagram for v8::internal::ByteArray:
Collaboration diagram for v8::internal::ByteArray:

Classes

class  BodyDescriptor
 

Public Types

using Shape = ByteArrayShape
 
- Public Types inherited from v8::internal::PrimitiveArrayBase< ByteArray, ByteArrayShape >
using Shape
 
using Header
 

Public Member Functions

uint32_t get_int (int offset) const
 
void set_int (int offset, uint32_t value)
 
- Public Member Functions inherited from v8::internal::PrimitiveArrayBase< ByteArray, ByteArrayShape >
ElementMemberT get (int index) const
 
void set (int index, ElementMemberT value)
 
int AllocatedSize () const
 
ElementMemberT * begin ()
 
const ElementMemberT * begin () const
 
ElementMemberT * end ()
 
const ElementMemberT * end () const
 
int DataSize () const
 
Handle< D > Allocate (IsolateT *isolate, int length, std::optional< DisallowGarbageCollection > *no_gc_out, AllocationType allocation)
 

Static Public Member Functions

template<class IsolateT >
static Handle< ByteArray > New (IsolateT *isolate, int capacity, AllocationType allocation=AllocationType::kYoung)
 
static constexpr int LengthFor (int size_in_bytes)
 
- Static Public Member Functions inherited from v8::internal::PrimitiveArrayBase< ByteArray, ByteArrayShape >
static constexpr int SizeFor (int length)
 
static constexpr int OffsetOfElementAt (int index)
 
static Tagged< ByteArray > FromAddressOfFirstElement (Address address)
 

Private Types

using Super = PrimitiveArrayBase<ByteArray, ByteArrayShape>
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::PrimitiveArrayBase< ByteArray, ByteArrayShape >
static constexpr bool kElementsAreMaybeObject
 
static constexpr int kElementSize
 
static constexpr int kMaxLength
 
static constexpr int kMaxRegularLength
 
- Protected Member Functions inherited from v8::internal::PrimitiveArrayBase< ByteArray, ByteArrayShape >
bool IsInBounds (int index) const
 
 FLEXIBLE_ARRAY_MEMBER (ElementMemberT, values)
 
- Static Protected Member Functions inherited from v8::internal::PrimitiveArrayBase< ByteArray, ByteArrayShape >
static Handle< ByteArray > Allocate (IsolateT *isolate, int length, std::optional< DisallowGarbageCollection > *no_gc_out, AllocationType allocation=AllocationType::kYoung)
 

Detailed Description

Definition at line 765 of file fixed-array.h.

Member Typedef Documentation

◆ Shape

Definition at line 770 of file fixed-array.h.

◆ Super

Member Function Documentation

◆ get_int()

uint32_t v8::internal::ByteArray::get_int ( int offset) const
inline

Definition at line 765 of file fixed-array-inl.h.

Here is the call graph for this function:

◆ LengthFor()

static constexpr int v8::internal::ByteArray::LengthFor ( int size_in_bytes)
inlinestaticconstexpr

Definition at line 782 of file fixed-array.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ New()

template<class IsolateT >
Handle< ByteArray > v8::internal::ByteArray::New ( IsolateT * isolate,
int capacity,
AllocationType allocation = AllocationType::kYoung )
inlinestatic

Definition at line 747 of file fixed-array-inl.h.

Here is the call graph for this function:

◆ set_int()

void v8::internal::ByteArray::set_int ( int offset,
uint32_t value )
inline

Definition at line 772 of file fixed-array-inl.h.

Here is the call graph for this function:

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