MCPcopy Create free account
hub / github.com/RetypeOS/parcode / compression_method

Method compression_method

src/format.rs:143–145  ·  view source on GitHub ↗

Returns the compression algorithm ID (0-7).

(&self)

Source from the content-addressed store, hash-verified

141
142 /// Returns the compression algorithm ID (0-7).
143 pub fn compression_method(&self) -> u8 {
144 (self.0 & Self::COMPRESSION_MASK) >> 1
145 }
146
147 /// Returns the raw byte representation.
148 pub fn as_u8(&self) -> u8 {

Callers 2

read_rawMethod · 0.80
inspect_nodeMethod · 0.80

Calls

no outgoing calls

Tested by 1

inspect_nodeMethod · 0.64