(arr []string)
| 431 | } |
| 432 | |
| 433 | func EncodeStringArray(arr []string) []byte { |
| 434 | var buf bytes.Buffer |
| 435 | for idx, s := range arr { |
| 436 | buf.Write(NullEncodeStr(s)) |
| 437 | if idx < len(arr)-1 { |
| 438 | buf.WriteByte(nullEncodeSepByte) |
| 439 | } |
| 440 | } |
| 441 | return buf.Bytes() |
| 442 | } |
| 443 | |
| 444 | func DecodeStringArray(barr []byte) ([]string, error) { |
| 445 | if len(barr) == 0 { |
nothing calls this directly
no test coverage detected