bytesToOctets converts byte sequences to a string using a three digit octal encoded value per byte.
(byteVal []byte)
| 817 | // bytesToOctets converts byte sequences to a string using a three digit octal encoded value |
| 818 | // per byte. |
| 819 | func bytesToOctets(byteVal []byte) string { |
| 820 | var b strings.Builder |
| 821 | for _, c := range byteVal { |
| 822 | _, _ = fmt.Fprintf(&b, "\\%03o", c) |
| 823 | } |
| 824 | return b.String() |
| 825 | } |
| 826 | |
| 827 | var fieldNameRegexp = regexp.MustCompile(`^[a-zA-Z_][a-zA-Z0-9_]{0,127}$`) |
| 828 |