Home
last modified time | relevance | path

Searched refs:ser (Results 1 – 25 of 121) sorted by relevance

12345

/third_party/node/test/parallel/
Dtest-v8-serdes.js30 const ser = new v8.DefaultSerializer(); constant
31 ser.writeHeader();
33 ser.writeValue(obj);
36 const des = new v8.DefaultDeserializer(ser.releaseBuffer());
51 const ser = new v8.DefaultSerializer(); constant
52 ser._getDataCloneError = common.mustCall((message) => {
57 ser.writeHeader();
60 ser.writeValue(new Proxy({}, {}));
65 const ser = new v8.DefaultSerializer(); constant
66 ser._writeHostObject = common.mustCall((object) => {
[all …]
/third_party/rust/crates/serde/serde_test/src/
Dser.rs1 use serde::{ser, Serialize};
35 ($ser:expr, $actual:ident) => {{
36 assert_next_token!($ser, stringify!($actual), Token::$actual, true);
38 ($ser:expr, $actual:ident($v:expr)) => {{
40 $ser,
46 ($ser:expr, $actual:ident { $($k:ident),* }) => {{
57 $ser,
63 ($ser:expr, $actual:expr, $pat:pat, $guard:expr) => {
64 match $ser.next_token() {
78 impl<'s, 'a> ser::Serializer for &'s mut Serializer<'a> { impl
[all …]
Dassert.rs4 use ser::Serializer;
67 let mut ser = Serializer::new(tokens); in assert_ser_tokens() localVariable
68 match value.serialize(&mut ser) { in assert_ser_tokens()
73 if ser.remaining() > 0 { in assert_ser_tokens()
74 panic!("{} remaining tokens", ser.remaining()); in assert_ser_tokens()
120 let mut ser = Serializer::new(tokens); in assert_ser_tokens_error() localVariable
121 match value.serialize(&mut ser) { in assert_ser_tokens_error()
126 if ser.remaining() > 0 { in assert_ser_tokens_error()
127 panic!("{} remaining tokens", ser.remaining()); in assert_ser_tokens_error()
/third_party/rust/crates/serde/test_suite/tests/expand/
Dser_enum.expanded.rs53 match _serde::ser::SerializeTupleVariant::serialize_field( in serialize()
62 match _serde::ser::SerializeTupleVariant::serialize_field( in serialize()
71 match _serde::ser::SerializeTupleVariant::serialize_field( in serialize()
80 match _serde::ser::SerializeTupleVariant::serialize_field( in serialize()
89 _serde::ser::SerializeTupleVariant::end(__serde_state) in serialize()
109 match _serde::ser::SerializeStructVariant::serialize_field( in serialize()
119 match _serde::ser::SerializeStructVariant::serialize_field( in serialize()
129 match _serde::ser::SerializeStructVariant::serialize_field( in serialize()
139 match _serde::ser::SerializeStructVariant::serialize_field( in serialize()
149 _serde::ser::SerializeStructVariant::end(__serde_state) in serialize()
[all …]
Dde_enum.expanded.rs46 match _serde::ser::SerializeTupleVariant::serialize_field( in serialize()
55 match _serde::ser::SerializeTupleVariant::serialize_field( in serialize()
64 match _serde::ser::SerializeTupleVariant::serialize_field( in serialize()
73 match _serde::ser::SerializeTupleVariant::serialize_field( in serialize()
82 _serde::ser::SerializeTupleVariant::end(__serde_state) in serialize()
102 match _serde::ser::SerializeStructVariant::serialize_field( in serialize()
112 match _serde::ser::SerializeStructVariant::serialize_field( in serialize()
122 match _serde::ser::SerializeStructVariant::serialize_field( in serialize()
132 match _serde::ser::SerializeStructVariant::serialize_field( in serialize()
142 _serde::ser::SerializeStructVariant::end(__serde_state) in serialize()
[all …]
/third_party/ffmpeg/libavformat/
Dserdec.c48 SERDemuxerContext *ser = s->priv_data; in ser_read_header() local
62 ser->width = avio_rl32(s->pb); in ser_read_header()
63 ser->height = avio_rl32(s->pb); in ser_read_header()
85 avpriv_set_pts_info(st, 64, ser->framerate.den, ser->framerate.num); in ser_read_header()
87 st->codecpar->width = ser->width; in ser_read_header()
88 st->codecpar->height = ser->height; in ser_read_header()
90 packet_size = av_image_get_buffer_size(st->codecpar->format, ser->width, ser->height, 1); in ser_read_header()
93 ser->end = 178 + st->nb_frames * packet_size; in ser_read_header()
104 SERDemuxerContext *ser = s->priv_data; in ser_read_packet() local
109 if (pos >= ser->end) in ser_read_packet()
/third_party/rust/crates/serde/serde_derive/src/
Dser.rs292 _serde::ser::SerializeTupleStruct::end(__serde_state) in serialize_tuple_struct()
356 _serde::ser::SerializeStruct::end(__serde_state) in serialize_struct_as_struct()
400 _serde::ser::SerializeMap::end(__serde_state) in serialize_struct_as_map()
440 _serde::__private::Err(_serde::ser::Error::custom(#skipped_msg)) in serialize_variant()
507 let ser = wrap_serialize_variant_with(params, path, variant); in serialize_externally_tagged_variant() localVariable
514 #ser, in serialize_externally_tagged_variant()
583 let ser = wrap_serialize_variant_with(params, path, variant); in serialize_internally_tagged_variant() localVariable
585 _serde::__private::ser::serialize_tagged_newtype( in serialize_internally_tagged_variant()
591 #ser, in serialize_internally_tagged_variant()
601 try!(_serde::ser::SerializeStruct::serialize_field( in serialize_internally_tagged_variant()
[all …]
/third_party/rust/crates/serde/serde/src/private/
Ddoc.rs5 use ser;
11 impl ser::Error for Error {
132 type SerializeSeq = $crate::ser::Impossible<Self::Ok, Self::Error>;
136 type SerializeTuple = $crate::ser::Impossible<Self::Ok, Self::Error>;
140 type SerializeTupleStruct = $crate::ser::Impossible<Self::Ok, Self::Error>;
144 type SerializeTupleVariant = $crate::ser::Impossible<Self::Ok, Self::Error>;
148 type SerializeMap = $crate::ser::Impossible<Self::Ok, Self::Error>;
152 type SerializeStruct = $crate::ser::Impossible<Self::Ok, Self::Error>;
156 type SerializeStructVariant = $crate::ser::Impossible<Self::Ok, Self::Error>;
Dser.rs3 use ser::{self, Impossible, Serialize, SerializeMap, SerializeStruct, Serializer};
89 ser::Error::custom(format_args!( in bad_type()
342 use ser::{self, Serialize, Serializer};
360 impl<M> ser::SerializeTupleVariant for SerializeTupleVariantAsMapValue<M>
362 M: ser::SerializeMap,
400 impl<M> ser::SerializeStructVariant for SerializeStructVariantAsMapValue<M>
402 M: ser::SerializeMap,
502 use ser::SerializeTuple; in serialize()
510 use ser::SerializeTupleStruct; in serialize()
518 use ser::SerializeTupleVariant; in serialize()
[all …]
/third_party/jerryscript/jerry-debugger/
Djerry_client_serial.py32 self.ser = serial.Serial(port=port, baudrate=baudrate, parity=parity,
41 self.ser.close()
45 return self.ser.read(max_size)
49 return self.ser.write(data)
53 result = select.select([self.ser.fileno()], [], [], 0)[0]
55 return self.ser.fileno() in result
/third_party/rust/crates/serde/serde/src/ser/
Dimpossible.rs5 use ser::{
70 Error: ser::Error,
90 Error: ser::Error,
110 Error: ser::Error,
130 Error: ser::Error,
150 Error: ser::Error,
178 Error: ser::Error,
199 Error: ser::Error,
/third_party/openssl/crypto/ec/curve448/
Dscalar.c139 const unsigned char *ser, in scalar_decode_short() argument
148 out |= ((c448_word_t) ser[k]) << (8 * j); in scalar_decode_short()
155 const unsigned char ser[C448_SCALAR_BYTES]) in ossl_curve448_scalar_decode()
160 scalar_decode_short(s, ser, C448_SCALAR_BYTES); in ossl_curve448_scalar_decode()
177 const unsigned char *ser, size_t ser_len) in ossl_curve448_scalar_decode_long() argument
191 scalar_decode_short(t1, &ser[i], ser_len - i); in ossl_curve448_scalar_decode_long()
204 (void)ossl_curve448_scalar_decode(t2, ser + i); in ossl_curve448_scalar_decode_long()
214 ossl_curve448_scalar_encode(unsigned char ser[C448_SCALAR_BYTES], in ossl_curve448_scalar_encode()
221 ser[k] = s->limb[i] >> (8 * j); in ossl_curve448_scalar_encode()
Dpoint_448.h97 const unsigned char ser[C448_SCALAR_BYTES]);
108 const unsigned char *ser, size_t ser_len);
117 ossl_curve448_scalar_encode(unsigned char ser[C448_SCALAR_BYTES],
/third_party/mesa3d/.gitlab-ci/bare-metal/
Dfastboot_run.py35 self.ser = SerialBuffer(
38 ser=args.fbserial)
42 self.ser.close()
62 for line in self.ser.lines(timeout=2 * 60, phase="bootloader"):
82 for line in self.ser.lines(timeout=self.test_timeout, phase="test"):
Dgoogle-power-relay.py16 ser = serial.Serial('/dev/ttyACM0', 115200, timeout=2) variable
18 ser.write(command.encode())
19 ser.close()
Dpoe_run.py36 self.ser = SerialBuffer(
54 for line in self.ser.lines(timeout=5 * 60, phase="bootloader"):
64 for line in self.ser.lines(timeout=self.test_timeout, phase="test"):
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_struct-json/
Dmain.c516 lws_struct_serialize_t *ser; in main() local
598 ser = lws_struct_json_serialize_create(lsm_schema_map, in main()
603 ser = lws_struct_json_serialize_create(&lsm_schema_map[1], in main()
608 if (!ser) { in main()
614 n = (int)lws_struct_json_serialize(ser, buf, sizeof(buf), in main()
633 lws_struct_json_serialize_destroy(&ser); in main()
653 ser = lws_struct_json_serialize_create(lsm_schema_meta, 1, 0, in main()
655 if (!ser) { in main()
661 n = (int)lws_struct_json_serialize(ser, buf, sizeof(buf), &written); in main()
681 lws_struct_json_serialize_destroy(&ser); in main()
Dtest2.c169 lws_struct_serialize_t *ser; in test2() local
204 ser = lws_struct_json_serialize_create(&lsm_schema[0], 1, in test2()
206 if (!ser) { in test2()
212 n = (int)lws_struct_json_serialize(ser, buf, sizeof(buf), &written); in test2()
228 lws_struct_json_serialize_destroy(&ser); in test2()
/third_party/node/src/
Dnode_serdes.cc457 Local<FunctionTemplate> ser = in Initialize() local
460 ser->InstanceTemplate()->SetInternalFieldCount( in Initialize()
462 ser->Inherit(BaseObject::GetConstructorTemplate(env)); in Initialize()
464 env->SetProtoMethod(ser, "writeHeader", SerializerContext::WriteHeader); in Initialize()
465 env->SetProtoMethod(ser, "writeValue", SerializerContext::WriteValue); in Initialize()
466 env->SetProtoMethod(ser, "releaseBuffer", SerializerContext::ReleaseBuffer); in Initialize()
467 env->SetProtoMethod(ser, in Initialize()
470 env->SetProtoMethod(ser, "writeUint32", SerializerContext::WriteUint32); in Initialize()
471 env->SetProtoMethod(ser, "writeUint64", SerializerContext::WriteUint64); in Initialize()
472 env->SetProtoMethod(ser, "writeDouble", SerializerContext::WriteDouble); in Initialize()
[all …]
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lecp/
DREADME.md26 [2019/03/30 22:09:09:2899] NOTICE: ser says 1
34 [2019/03/30 22:09:09:2935] NOTICE: ser says 1
42 [2019/03/30 22:09:09:2969] NOTICE: ser says 1
47 [2019/03/30 22:09:09:2973] NOTICE: ser says 1
52 [2019/03/30 22:09:09:2980] NOTICE: ser says 1
/third_party/node/lib/internal/child_process/
Dserialization.js80 const ser = new ChildProcessSerializer();
81 ser.writeHeader();
82 ser.writeValue(message);
83 const serializedMessage = ser.releaseBuffer();
/third_party/toybox/toys/net/
Dnetstat.c44 struct servent *ser = 0; in addr2str() local
85 ser = getservbyport(htons(port), cut); in addr2str()
90 if (ser) { in addr2str()
91 count = snprintf(0, 0, ":%s", ser->s_name); in addr2str()
95 ser->s_name[count] = 0; in addr2str()
99 if (ser) sprintf(buf+pos, ":%s", ser->s_name); in addr2str()
/third_party/rust/crates/serde/serde_derive/src/internals/
Dattr.rs329 if let Ok((ser, de)) = get_renames(cx, &m.nested) { in from_ast()
330 ser_name.set_opt(&m.path, ser.map(syn::LitStr::value)); in from_ast()
350 if let Ok((ser, de)) = get_renames(cx, &m.nested) { in from_ast()
351 if let Some(ser) = ser { in from_ast()
352 match RenameRule::from_str(&ser.value()) { in from_ast()
354 Err(err) => cx.error_spanned_by(ser, err), in from_ast()
438 if let Ok((ser, de)) = get_where_predicates(cx, &m.nested) { in from_ast()
439 ser_bound.set_opt(&m.path, ser); in from_ast()
892 if let Ok((ser, de)) = get_multiple_renames(cx, &m.nested) { in from_ast()
893 ser_name.set_opt(&m.path, ser.map(syn::LitStr::value)); in from_ast()
[all …]
/third_party/icu/icu4j/perf-tests/data/udhr/
Dudhr_spa.txt35 Nadie será sometido a torturas ni a penas o tratos crueles, inhumanos o degradantes.
38 Todo ser humano tiene derecho, en todas partes, al reconocimiento de su personalidad jurídica.
47 Nadie podrá ser arbitrariamente detenido, preso ni desterrado.
50 …Toda persona tiene derecho, en condiciones de plena igualdad, a ser oída públicamente y con justic…
58 …Nadie será condenado por actos u omisiones que en el momento de cometerse no fueron delictivos seg…
63 …Nadie será objeto de injerencias arbitrarias en su vida privada, su familia, su domicilio o su cor…
81 …Este derecho no podrá ser invocado contra una acción judicial realmente originada por delitos comu…
114 Nadie será privado arbitrariamente de su propiedad.
122 …erecho a la libertad de opinión y de expresión; este derecho incluye el no ser molestado a causa d…
130 Nadie podrá ser obligado a pertenecer a una asociación.
[all …]
/third_party/node/lib/
Dv8.js329 const ser = new DefaultSerializer();
330 ser.writeHeader();
331 ser.writeValue(value);
332 return ser.releaseBuffer();

12345