(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)
| 56 | } |
| 57 | |
| 58 | func (s byteSliceSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 59 | done, typeId := readSliceRefAndType(ctx, refMode, readType, value) |
| 60 | if done || ctx.HasError() { |
| 61 | return |
| 62 | } |
| 63 | if readType && typeId != uint32(BINARY) && typeId != uint32(UINT8_ARRAY) { |
| 64 | ctx.SetError(DeserializationErrorf("slice type mismatch: expected BINARY (%d) or UINT8_ARRAY (%d), got %d", BINARY, UINT8_ARRAY, typeId)) |
| 65 | return |
| 66 | } |
| 67 | s.ReadData(ctx, value) |
| 68 | } |
| 69 | |
| 70 | func (s byteSliceSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) { |
| 71 | s.Read(ctx, refMode, false, false, value) |
no test coverage detected