MCPcopy Create free account
hub / github.com/Monibuca/engine / GetFillBytes

Function GetFillBytes

util/convert.go:350–357  ·  view source on GitHub ↗
(data byte, n int)

Source from the content-addressed store, hash-verified

348}
349
350func GetFillBytes(data byte, n int) []byte {
351 b := make([]byte, n)
352 for i := range b {
353 b[i] = data
354 }
355
356 return b
357}
358func ToFloat64(num interface{}) float64 {
359 switch v := num.(type) {
360 case uint:

Callers 2

initFunction · 0.92
WritePATPacketFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected