(arrayVal reflect.Value)
| 451 | } |
| 452 | |
| 453 | func (m *MarshalBSUPContext) encodeArrayBytes(arrayVal reflect.Value) (super.Type, error) { |
| 454 | n := arrayVal.Len() |
| 455 | bytes := make([]byte, 0, n) |
| 456 | for k := range n { |
| 457 | v := arrayVal.Index(k) |
| 458 | bytes = append(bytes, v.Interface().(uint8)) |
| 459 | } |
| 460 | m.Builder.Append(bytes) |
| 461 | return super.TypeBytes, nil |
| 462 | } |
| 463 | |
| 464 | func (m *MarshalBSUPContext) encodeArray(arrayVal reflect.Value) (super.Type, error) { |
| 465 | m.Builder.BeginContainer() |