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

Method compress_string

rust/fory-core/src/fory.rs:176–179  ·  view source on GitHub ↗

Enables or disables meta string compression. # Arguments `compress_string` - If `true`, enables meta string compression to reduce serialized payload size by deduplicating and encoding frequently used strings (such as type names and field names). If `false`, strings are serialized without compression. # Returns Returns `self` for method chaining. # Default The default value is `false`. # Tra

(mut self, compress_string: bool)

Source from the content-addressed store, hash-verified

174 /// let fory = Fory::builder().compress_string(true).build();
175 /// ```
176 pub fn compress_string(mut self, compress_string: bool) -> Self {
177 self.config.compress_string = compress_string;
178 self
179 }
180
181 /// Enables or disables checked UTF-8 string reads.
182 ///

Callers 1

test_string_serializerFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_string_serializerFunction · 0.64