MCPcopy Create free account
hub / github.com/apache/fory / fory_read_data

Method fory_read_data

rust/fory-core/src/serializer/datetime.rs:38–42  ·  view source on GitHub ↗
(context: &mut ReadContext)

Source from the content-addressed store, hash-verified

36
37 #[inline(always)]
38 fn fory_read_data(context: &mut ReadContext) -> Result<Self, Error> {
39 let seconds = context.reader.read_i64()?;
40 let nanos = context.reader.read_u32()?;
41 Timestamp::new(seconds, nanos)
42 }
43 #[inline]
44 fn fory_read_data_as_send_sync_any(
45 context: &mut ReadContext,

Callers

nothing calls this directly

Calls 6

fory_read_dataFunction · 0.85
read_i64Method · 0.80
read_u32Method · 0.80
read_var_i64Method · 0.80
read_i32Method · 0.80
is_xlangMethod · 0.45

Tested by

no test coverage detected