MCPcopy Create free account
hub / github.com/Print3M/ByteCaster / bytesArray

Method bytesArray

output/output.go:72–89  ·  view source on GitHub ↗
(indentSpaces int, cols int)

Source from the content-addressed store, hash-verified

70}
71
72func (o *output) bytesArray(indentSpaces int, cols int) {
73 indent := strings.Repeat(" ", indentSpaces)
74
75 fmt.Print(indent)
76
77 for i, b := range o.data {
78 if i > 0 {
79 if cols > 0 && i%cols == 0 {
80 fmt.Print(",\n")
81 fmt.Print(indent)
82 } else {
83 fmt.Print(", ")
84 }
85 }
86
87 fmt.Printf("0x%02x", b)
88 }
89}
90
91func (o *output) raw() {
92 /*

Callers 11

cMethod · 0.95
golangMethod · 0.95
jsMethod · 0.95
phpMethod · 0.95
csharpMethod · 0.95
rustMethod · 0.95
powershellMethod · 0.95
nimMethod · 0.95
zigMethod · 0.95
pythonMethod · 0.95
javaMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected