(in string, size int)
| 483 | } |
| 484 | |
| 485 | func zeroPaddedString(in string, size int) []byte { |
| 486 | if len(in) > size { |
| 487 | panic(fmt.Sprintf("string %q is longer than requested size %d", in, size)) |
| 488 | } |
| 489 | |
| 490 | return append([]byte(in), make([]byte, size-len(in))...) |
| 491 | } |
no outgoing calls
no test coverage detected