Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4431df7

Browse filesBrowse files
joyeecheungtargos
authored andcommitted
src: split BlobSerializer/BlobDeserializer
This patch splits BlobSerializer and BlobDeserializer out of SnapshotSerializer and SnapshotDeserializer. The child classes can implement serialization methods for custom types on top of BlobSerializer/BlobDeserializer for conversions between native types and binary blobs. This allows us to reuse the classes for other cases (e.g. SEA blobs). PR-URL: #47458 Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent f8581e7 commit 4431df7
Copy full SHA for 4431df7

File tree

Expand file treeCollapse file tree

2 files changed

+169
-100
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+169
-100
lines changed
Open diff view settings
Collapse file

‎src/env.h‎

Copy file name to clipboardExpand all lines: src/env.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ struct SnapshotData {
534534
bool Check() const;
535535
static bool FromFile(SnapshotData* out, FILE* in);
536536
static bool FromBlob(SnapshotData* out, const std::vector<char>& in);
537+
static bool FromBlob(SnapshotData* out, std::string_view in);
537538
static const SnapshotData* FromEmbedderWrapper(
538539
const EmbedderSnapshotData* data);
539540
EmbedderSnapshotData::Pointer AsEmbedderWrapper() const;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.