MCPcopy Create free account
hub / github.com/dcSpark/cddl-codegen / split_point

Function split_point

static/emit_tests_encoding_fidelity.rs:199–207  ·  view source on GitHub ↗

The midpoint split index for a string chunk, backed off DOWN to a UTF-8 char boundary for text (a boundary byte is any non-continuation byte, `b & 0xc0 != 0x80`). Bytes split at the raw midpoint. Minted strings are ASCII, so the backoff is a no-op there, but the mutator must not assume it.

(data: &[u8], is_text: bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

emit_itemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected