#include <datastream.h>
Definition at line 51 of file datastream.h.
◆ ReadStream() [1/2]
dart::ReadStream::ReadStream |
( |
const uint8_t * |
buffer, |
|
|
intptr_t |
size |
|
) |
| |
|
inline |
Definition at line 53 of file datastream.h.
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ ReadStream() [2/2]
dart::ReadStream::ReadStream |
( |
const uint8_t * |
buffer, |
|
|
intptr_t |
size, |
|
|
intptr_t |
pos |
|
) |
| |
|
inline |
Definition at line 57 of file datastream.h.
60 }
ReadStream(const uint8_t *buffer, intptr_t size)
void SetPosition(intptr_t value)
◆ AddressOfCurrentPosition()
const uint8_t * dart::ReadStream::AddressOfCurrentPosition |
( |
| ) |
const |
|
inline |
◆ Advance()
void dart::ReadStream::Advance |
( |
intptr_t |
value | ) |
|
|
inline |
◆ Align()
void dart::ReadStream::Align |
( |
intptr_t |
alignment, |
|
|
intptr_t |
offset = 0 |
|
) |
| |
|
inline |
Definition at line 133 of file datastream.h.
133 {
134 intptr_t position_before =
Position();
135 intptr_t position_after =
137 Advance(position_after - position_before);
138 }
intptr_t Position() const
void Advance(intptr_t value)
static constexpr T RoundUp(T x, uintptr_t alignment, uintptr_t offset=0)
◆ PendingBytes()
intptr_t dart::ReadStream::PendingBytes |
( |
| ) |
const |
|
inline |
Definition at line 147 of file datastream.h.
147 {
149 return (end_ - current_);
150 }
◆ Position()
intptr_t dart::ReadStream::Position |
( |
| ) |
const |
|
inline |
Definition at line 127 of file datastream.h.
127{ return current_ - buffer_; }
◆ Read()
T dart::ReadStream::Read |
( |
| ) |
|
|
inline |
Definition at line 153 of file datastream.h.
153 {
155 }
static constexpr uint8_t kEndByteMarker
◆ ReadBytes()
void dart::ReadStream::ReadBytes |
( |
void * |
addr, |
|
|
intptr_t |
len |
|
) |
| |
|
inline |
◆ ReadLEB128() [1/2]
template<typename
T = uintptr_t>
Definition at line 173 of file datastream.h.
173 {
178 do {
185 return r;
186 }
constexpr intptr_t kBitsPerByte
static constexpr uint8_t kDataBitsPerByte
static constexpr uint8_t kDataByteMask
static constexpr uint8_t kMoreDataMask
◆ ReadLEB128() [2/2]
Definition at line 189 of file datastream.h.
189 {
191 }
C::only_if_unsigned< T, T > ReadLEB128()
◆ ReadRefId()
intptr_t dart::ReadStream::ReadRefId |
( |
| ) |
|
|
inline |
Definition at line 103 of file datastream.h.
103 {
104 const int8_t* cursor = reinterpret_cast<const int8_t*>(current_);
106 intptr_t byte;
107
108#define STAGE \
109 byte = *cursor++; \
110 result = byte + (result << 7); \
111 if (byte < 0) goto done;
116#undef STAGE
118
120 current_ = reinterpret_cast<const uint8_t*>(cursor);
121
122
123
125 }
static void done(const char *config, const char *src, const char *srcOptions, const char *name)
◆ ReadSLEB128() [1/2]
Definition at line 194 of file datastream.h.
194 {
199 do {
206
207
208
209
212
213 sign_bits = ~((
static_cast<T>(1) <<
s) - 1);
214 }
215 return r | sign_bits;
216 }
static constexpr uint8_t kSignMask
◆ ReadSLEB128() [2/2]
template<typename
T = intptr_t>
Definition at line 219 of file datastream.h.
219 {
221 }
C::only_if_unsigned< T, T > ReadSLEB128()
◆ ReadUnsigned()
template<typename
T = intptr_t>
T dart::ReadStream::ReadUnsigned |
( |
| ) |
|
|
inline |
Definition at line 99 of file datastream.h.
99 {
101 }
static constexpr uint8_t kEndUnsignedByteMarker
◆ ReadWordWith32BitReads()
uword dart::ReadStream::ReadWordWith32BitReads |
( |
| ) |
|
|
inline |
Definition at line 157 of file datastream.h.
157 {
159
161 for (intptr_t j = 0; j < kNumRead32PerWord; j++) {
164 }
166 }
SK_API bool Read(SkStreamSeekable *src, SkDocumentPage *dstArray, int dstArrayCount, const SkDeserialProcs *=nullptr)
constexpr intptr_t kBitsPerWord
constexpr intptr_t kBitsPerInt32
◆ SetPosition()
void dart::ReadStream::SetPosition |
( |
intptr_t |
value | ) |
|
|
inline |
◆ Deserializer
The documentation for this class was generated from the following file: