Go to the source code of this file.
◆ SK_BYTE_SENTINEL_FOR_U16
#define SK_BYTE_SENTINEL_FOR_U16 0xFE |
◆ SK_BYTE_SENTINEL_FOR_U32
#define SK_BYTE_SENTINEL_FOR_U32 0xFF |
◆ SK_MAX_BYTE_FOR_U8
#define SK_MAX_BYTE_FOR_U8 0xFD |
◆ SkDynamicMemoryWStream_MinBlockSize
#define SkDynamicMemoryWStream_MinBlockSize 4096 |
◆ mmap_filename()
static sk_sp< SkData > mmap_filename |
( |
const char |
path[] | ) |
|
|
static |
Definition at line 911 of file SkStream.cpp.
911 {
913 if (
nullptr ==
file) {
914 return nullptr;
915 }
916
920}
FILE * sk_fopen(const char path[], SkFILE_Flags)
static sk_sp< SkData > MakeFromFILE(FILE *f)
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
std::shared_ptr< const fml::Mapping > data
◆ newFromParams()
static sk_sp< SkData > newFromParams |
( |
const void * |
src, |
|
|
size_t |
size, |
|
|
bool |
copyData |
|
) |
| |
|
static |
Definition at line 276 of file SkStream.cpp.
276 {
277 if (copyData) {
279 } else {
281 }
282}
static sk_sp< SkData > MakeWithoutCopy(const void *data, size_t length)
static sk_sp< SkData > MakeWithCopy(const void *data, size_t length)
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
◆ sk_memcpy_4bytes()
static void sk_memcpy_4bytes |
( |
void * |
dst, |
|
|
const void * |
src, |
|
|
size_t |
size |
|
) |
| |
|
inlinestatic |
◆ SkCopyStreamToData()
Copy the provided stream to an SkData variable.
Note: Assumes the stream is at the beginning. If it has a length, but is not at the beginning, this call will fail (return NULL).
- Parameters
-
- Returns
- The resulting SkData after the copy, nullptr on failure.
Definition at line 937 of file SkStream.cpp.
937 {
939
940 if (
stream->hasLength()) {
942 }
943
945 const size_t bufferSize = 4096;
947 do {
950 }
while (!
stream->isAtEnd());
952}
static sk_sp< SkData > MakeFromStream(SkStream *, size_t size)
bool write(const void *buffer, size_t size) override
sk_sp< SkData > detachAsData()
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
◆ SkStreamCopy()
Copies the input stream from the current position to the end. Does not rewind the input stream.
Definition at line 954 of file SkStream.cpp.
954 {
957
962 }
963 char scratch[4096];
965 while (true) {
966 count = input->
read(scratch,
sizeof(scratch));
968 return true;
969 }
971 return false;
972 }
973 }
974}
virtual bool hasPosition() const
virtual size_t getPosition() const
virtual size_t getLength() const
virtual const void * getMemoryBase()
virtual bool hasLength() const
virtual size_t read(void *buffer, size_t size)=0
◆ StreamRemainingLengthIsBelow()
bool StreamRemainingLengthIsBelow |
( |
SkStream * |
stream, |
|
|
size_t |
len |
|
) |
| |
Definition at line 976 of file SkStream.cpp.
976 {
978 if (
stream->hasLength()) {
979 if (
stream->hasPosition()) {
980 size_t remainingBytes =
stream->getLength() -
stream->getPosition();
981 return remainingBytes <
len;
982 }
983
984
986 }
987 return false;
988}