Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: src/api.cc

Issue 2386233002: ValueSerializer: Expose reading/writing doubles to embedder. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | src/value-serializer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 8ab362ae205e76a19b436dc8740455da0d75b7ff..76ff61f04fc67d3cf74815011ee7d41ee6fbf6a0 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -2975,6 +2975,10 @@ void ValueSerializer::WriteUint64(uint64_t value) {
private_->serializer.WriteUint64(value);
}
+void ValueSerializer::WriteDouble(double value) {
+ private_->serializer.WriteDouble(value);
+}
+
void ValueSerializer::WriteRawBytes(const void* source, size_t length) {
private_->serializer.WriteRawBytes(source, length);
}
@@ -3099,6 +3103,10 @@ bool ValueDeserializer::ReadUint64(uint64_t* value) {
return private_->deserializer.ReadUint64(value);
}
+bool ValueDeserializer::ReadDouble(double* value) {
+ return private_->deserializer.ReadDouble(value);
+}
+
bool ValueDeserializer::ReadRawBytes(size_t length, const void** data) {
return private_->deserializer.ReadRawBytes(length, data);
}
« no previous file with comments | « include/v8.h ('k') | src/value-serializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698