MCPcopy Create free account
hub / github.com/cli/cli / RawBytes

Method RawBytes

pkg/iostreams/untrusted.go:80–82  ·  view source on GitHub ↗

RawBytes is Raw as a byte slice, for callers that need []byte (hashing, file writes). Same terminal caveat as Raw.

()

Source from the content-addressed store, hash-verified

78// RawBytes is Raw as a byte slice, for callers that need []byte (hashing, file
79// writes). Same terminal caveat as Raw.
80func (u Untrusted) RawBytes() []byte {
81 return []byte(u.raw)
82}
83
84// stripControl is a defensive fallback used only if the sanitizing transform
85// errors, which the asciisanitizer does not do in practice. It drops C0 control

Callers 2

viewRunFunction · 0.95

Calls

no outgoing calls

Tested by 1