(
&self,
context: &mut WriteContext,
ref_mode: RefMode,
write_type_info: bool,
has_generics: bool,
)
| 244 | /// [`fory_write_data_generic`]: Serializer::fory_write_data_generic |
| 245 | #[inline(always)] |
| 246 | fn fory_write( |
| 247 | &self, |
| 248 | context: &mut WriteContext, |
| 249 | ref_mode: RefMode, |
| 250 | write_type_info: bool, |
| 251 | has_generics: bool, |
| 252 | ) -> Result<(), Error> |
| 253 | where |
| 254 | Self: Sized, |
| 255 | { |
| 256 | // Fast path: single comparison for primitives/strings/time types |
| 257 | if ref_mode != RefMode::None { |
| 258 | context.writer.write_i8(RefFlag::NotNullValue as i8); |
| 259 | } |
| 260 | if write_type_info { |
| 261 | Self::fory_write_type_info(context)?; |
| 262 | } |
| 263 | self.fory_write_data_generic(context, has_generics) |
| 264 | } |
| 265 | |
| 266 | /// Write data with generic type parameter support. |
| 267 | /// |
nothing calls this directly
no test coverage detected