Shaka Player Embedded
|
#include <byte_string.h>
Public Member Functions | |
ByteString (const char *source) | |
ByteString (const std::string &source) | |
bool | TryConvert (Handle< JsValue > value) override |
ReturnVal< JsValue > | ToJsValue () const override |
void | Trace (memory::HeapTracer *tracer) const override |
![]() | |
virtual | ~GenericConverter () |
![]() | |
virtual | ~Traceable () |
virtual bool | IsRootedAlive () const |
virtual bool | IsShortLived () const |
Static Public Member Functions | |
static std::string | name () |
Additional Inherited Members | |
![]() | |
static constexpr const uint64_t | kShortLiveDurationMs = 5000 |
Represents a string where each character is interpreted as a byte, independent of the encoding.
This inherits from std::vector to expose the same methods (e.g. size(), data(), operator[]).
Definition at line 32 of file byte_string.h.
|
explicit |
Definition at line 25 of file byte_string.cc.
|
explicit |
Definition at line 28 of file byte_string.cc.
|
inlinestatic |
Definition at line 36 of file byte_string.h.
|
overridevirtual |
Converts the current value into a JavaScript value.
Implements shaka::GenericConverter.
Definition at line 69 of file byte_string.cc.
|
inlineoverridevirtual |
Called during a GC run. This should call HeapTracer::Trace on all Traceable members. Be sure to call the base method when overriding.
Implements shaka::memory::Traceable.
Definition at line 49 of file byte_string.h.
|
overridevirtual |
Tries to convert the given value into the required type, populating the members of this object as needed.
Implements shaka::GenericConverter.
Definition at line 32 of file byte_string.cc.