Home
last modified time | relevance | path

Searched refs:deserializer (Results 1 – 25 of 47) sorted by relevance

12

/third_party/rust/crates/serde/serde/src/de/
Dimpls.rs35 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in deserialize()
39 deserializer.deserialize_unit(UnitVisitor) in deserialize()
73 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in deserialize()
77 deserializer.deserialize_bool(BoolVisitor) in deserialize()
89 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
105 deserializer.$deserialize(NonZeroVisitor)
113 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
129 deserializer.$deserialize(PrimitiveVisitor)
463 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in deserialize()
467 deserializer.deserialize_char(CharVisitor) in deserialize()
[all …]
Dignored_any.rs176 fn visit_some<D>(self, deserializer: D) -> Result<Self::Value, D::Error> in visit_some()
180 IgnoredAny::deserialize(deserializer) in visit_some()
184 fn visit_newtype_struct<D>(self, deserializer: D) -> Result<Self::Value, D::Error> in visit_newtype_struct()
188 IgnoredAny::deserialize(deserializer) in visit_newtype_struct()
237 fn deserialize<D>(deserializer: D) -> Result<IgnoredAny, D::Error> in deserialize()
241 deserializer.deserialize_ignored_any(IgnoredAny) in deserialize()
Dseed.rs13 fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error> in deserialize()
17 T::deserialize_in_place(deserializer, self.0) in deserialize()
Dmod.rs539 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in deserialize()
563 fn deserialize_in_place<D>(deserializer: D, place: &mut Self) -> Result<(), D::Error> in deserialize_in_place()
568 *place = Deserialize::deserialize(deserializer)?; in deserialize_in_place()
771 fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error> in deserialize()
783 fn deserialize<D>(self, deserializer: D) -> Result<T, D::Error> in deserialize()
787 T::deserialize(deserializer) in deserialize()
1607 fn visit_some<D>(self, deserializer: D) -> Result<Self::Value, D::Error> in visit_some()
1611 let _ = deserializer; in visit_some()
1631 fn visit_newtype_struct<D>(self, deserializer: D) -> Result<Self::Value, D::Error> in visit_newtype_struct()
1635 let _ = deserializer; in visit_newtype_struct()
/third_party/skia/src/core/
DSkRemoteGlyphCache.cpp891 static bool ReadGlyph(SkTLazy<SkGlyph>& glyph, Deserializer* deserializer);
911 bool SkStrikeClientImpl::ReadGlyph(SkTLazy<SkGlyph>& glyph, Deserializer* deserializer) { in ReadGlyph() argument
913 if (!deserializer->read<SkPackedGlyphID>(&glyphID)) return false; in ReadGlyph()
915 if (!deserializer->read<float>(&glyph->fAdvanceX)) return false; in ReadGlyph()
916 if (!deserializer->read<float>(&glyph->fAdvanceY)) return false; in ReadGlyph()
917 if (!deserializer->read<uint16_t>(&glyph->fWidth)) return false; in ReadGlyph()
918 if (!deserializer->read<uint16_t>(&glyph->fHeight)) return false; in ReadGlyph()
919 if (!deserializer->read<int16_t>(&glyph->fTop)) return false; in ReadGlyph()
920 if (!deserializer->read<int16_t>(&glyph->fLeft)) return false; in ReadGlyph()
922 if (!deserializer->read<uint8_t>(&maskFormat)) return false; in ReadGlyph()
[all …]
/third_party/rust/crates/serde/test_suite/tests/
Dtest_value.rs17 let deserializer = IntoDeserializer::<value::Error>::into_deserializer(1u32); in test_u32_to_enum() localVariable
18 let e: E = E::deserialize(deserializer).unwrap(); in test_u32_to_enum()
56 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in test_map_access_to_enum()
77 deserializer.deserialize_any(PotentialVisitor) in test_map_access_to_enum()
Dtest_borrow.rs166 fn _cows_lifetimes<'de: 'b, 'a, 'b, D>(deserializer: D) -> Cows<'a, 'b> in test_lifetimes()
170 Deserialize::deserialize(deserializer).unwrap() in test_lifetimes()
180 fn _wrap_lifetimes<'de: 'b, 'a, 'b, D>(deserializer: D) -> Wrap<'a, 'b> in test_lifetimes()
184 Deserialize::deserialize(deserializer).unwrap() in test_lifetimes()
Dtest_de_error.rs191 let deserializer = <i128 as IntoDeserializer>::into_deserializer(1); in test_i128() localVariable
192 let error = <&str>::deserialize(deserializer).unwrap_err(); in test_i128()
341 let deserializer = <u64 as IntoDeserializer>::into_deserializer(1); in test_u64() localVariable
342 let error = <&str>::deserialize(deserializer).unwrap_err(); in test_u64()
371 let deserializer = <u128 as IntoDeserializer>::into_deserializer(1); in test_u128() localVariable
372 let error = <&str>::deserialize(deserializer).unwrap_err(); in test_u128()
Dtest_serde_path.rs32 fn deserialize<D: Deserializer<'a>>(deserializer: D) -> Result<Self, D::Error>; in deserialize()
/third_party/rust/crates/log/src/
Dserde.rs33 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in deserialize()
79 fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error> in deserialize()
83 deserializer.deserialize_identifier(LevelIdentifier) in deserialize()
107 deserializer.deserialize_enum("Level", &LOG_LEVEL_NAMES[1..], LevelEnum) in deserialize()
128 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in deserialize()
174 fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error> in deserialize()
178 deserializer.deserialize_identifier(LevelFilterIdentifier) in deserialize()
202 deserializer.deserialize_enum("LevelFilter", &LOG_LEVEL_NAMES, LevelFilterEnum) in deserialize()
/third_party/rust/crates/serde/serde_test/src/
Dconfigure.rs117 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in deserialize()
121 T::deserialize(Readable(deserializer)).map(Readable) in deserialize()
128 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in deserialize()
132 T::deserialize(Compact(deserializer)).map(Compact) in deserialize()
142 fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error> in deserialize()
146 self.0.deserialize(Readable(deserializer)) in deserialize()
155 fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error> in deserialize()
159 self.0.deserialize(Compact(deserializer)) in deserialize()
709 fn visit_some<D2>(self, deserializer: D2) -> Result<Self::Value, D2::Error>
713 self.0.visit_some($wrapper(deserializer))
[all …]
/third_party/node/lib/internal/child_process/
Dserialization.js88 const deserializer = new ChildProcessDeserializer(
97 deserializer.readHeader();
98 yield deserializer.readValue();
/third_party/rust/crates/either/src/
Dserde_untagged.rs58 pub fn deserialize<'de, L, R, D>(deserializer: D) -> Result<super::Either<L, R>, D::Error> in deserialize()
64 match Either::deserialize(deserializer) { in deserialize()
Dserde_untagged_optional.rs62 pub fn deserialize<'de, L, R, D>(deserializer: D) -> Result<Option<super::Either<L, R>>, D::Error> in deserialize()
68 match Option::deserialize(deserializer) { in deserialize()
/third_party/rust/crates/serde/test_suite/tests/bytes/
Dmod.rs4 pub fn deserialize<'de, D>(deserializer: D) -> Result<Vec<u8>, D::Error> in deserialize()
8 deserializer.deserialize_byte_buf(ByteBufVisitor) in deserialize()
/third_party/rust/crates/serde/serde_derive/src/
Dde.rs444 deserializer: Option<TokenStream>, in deserialize_tuple()
492 let dispatch = if let Some(deserializer) = deserializer { in deserialize_tuple()
493 quote!(_serde::Deserializer::deserialize_tuple(#deserializer, #nfields, #visitor_expr)) in deserialize_tuple()
545 deserializer: Option<TokenStream>, in deserialize_tuple_in_place()
578 let dispatch = if let Some(deserializer) = deserializer { in deserialize_tuple_in_place()
579 quote!(_serde::Deserializer::deserialize_tuple(#deserializer, #nfields, #visitor_expr)) in deserialize_tuple_in_place()
899 deserializer: Option<TokenStream>, in deserialize_struct()
948 let dispatch = if let Some(deserializer) = deserializer { in deserialize_struct()
950 _serde::Deserializer::deserialize_any(#deserializer, #visitor_expr) in deserialize_struct()
1050 deserializer: Option<TokenStream>, in deserialize_struct_in_place()
[all …]
/third_party/rust/crates/syn/json/src/
Dlib.rs201 fn private_if_absent<'de, D>(deserializer: D) -> Result<Data, D::Error> in private_if_absent()
205 let option = Option::deserialize(deserializer)?; in private_if_absent()
/third_party/node/doc/api/
Dv8.md445 [`deserializer.transferArrayBuffer()`][].
473 Write raw bytes into the serializer's internal buffer. The deserializer
506 [`deserializer.transferArrayBuffer()`][].
533 #### `deserializer.readHeader()`
539 #### `deserializer.readValue()`
543 #### `deserializer.transferArrayBuffer(id, arrayBuffer)`
553 #### `deserializer.getWireFormatVersion()`
561 #### `deserializer.readUint32()`
566 For use inside of a custom [`deserializer._readHostObject()`][].
568 #### `deserializer.readUint64()`
[all …]
/third_party/node/test/parallel/
Dtest-v8-serdes.js240 const deserializer = new v8.DefaultDeserializer(arrayBufferView); constant
241 deserializer.readHeader();
242 const value = deserializer.readValue();
/third_party/node/src/
Dnode_messaging.cc66 Local<Context> context, ValueDeserializer* deserializer) { in FinalizeTransferRead() argument
103 if (!deserializer->ReadUint32(&id)) in ReadHostObject()
112 if (!deserializer->ReadValue(context).ToLocal(&object)) in ReadHostObject()
131 ValueDeserializer* deserializer = nullptr; member in node::worker::__anon721656c60111::DeserializerDelegate
203 ValueDeserializer deserializer( in Deserialize() local
208 delegate.deserializer = &deserializer; in Deserialize()
214 deserializer.TransferArrayBuffer(i, ab); in Deserialize()
217 if (deserializer.ReadHeader(context).IsNothing()) in Deserialize()
220 if (!deserializer.ReadValue(context).ToLocal(&return_value)) in Deserialize()
224 if (base_object->FinalizeTransferRead(context, &deserializer).IsNothing()) in Deserialize()
[all …]
/third_party/rust/crates/serde/serde/src/private/
Dde.rs54 let deserializer = MissingFieldDeserializer(field, PhantomData); in missing_field() localVariable
55 Deserialize::deserialize(deserializer) in missing_field()
59 pub fn borrow_cow_str<'de: 'a, 'a, D, R>(deserializer: D) -> Result<R, D::Error> in borrow_cow_str()
128 deserializer.deserialize_str(CowStrVisitor).map(From::from) in borrow_cow_str()
132 pub fn borrow_cow_bytes<'de: 'a, 'a, D, R>(deserializer: D) -> Result<R, D::Error> in borrow_cow_bytes()
189 deserializer in borrow_cow_bytes()
291 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in deserialize()
298 deserializer.__deserialize_content(actually_private::T, visitor) in deserialize()
459 fn visit_some<D>(self, deserializer: D) -> Result<Self::Value, D::Error> in visit_some()
463 Deserialize::deserialize(deserializer).map(|v| Content::Some(Box::new(v))) in visit_some()
[all …]
/third_party/node/deps/v8/src/wasm/
Dwasm-serialization.cc585 DeserializeCodeTask(NativeModuleDeserializer* deserializer, in DeserializeCodeTask() argument
587 : deserializer_(deserializer), reloc_queue_(reloc_queue) {} in DeserializeCodeTask()
888 NativeModuleDeserializer deserializer(shared_native_module.get()); in DeserializeNativeModule() local
890 bool error = !deserializer.Read(&reader); in DeserializeNativeModule()
897 deserializer.lazy_functions(), deserializer.liftoff_functions()); in DeserializeNativeModule()
/third_party/node/lib/internal/test_runner/
Drunner.js322 const deserializer = new DefaultDeserializer(
330 deserializer.readHeader();
331 const item = deserializer.readValue();
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/
Dprotocol_core.h126 bool (*deserializer)(DeserializerState* state, void* obj);
268 auto deserializer = DeferredMessage::FromSpan(span<uint8_t>(bytes, size))
270 Deserialize(&deserializer, value.get());
/third_party/rust/crates/cxx/book/src/binding/
Dslice.md132 let mut deserializer = serde_json::Deserializer::from_slice(input);
134 serde_transcode::transcode(&mut deserializer, &mut serializer)

12