(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)
| 97 | } |
| 98 | |
| 99 | func (s encodedByteSliceSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 100 | _ = hasGenerics |
| 101 | done, typeID := readSliceRefAndType(ctx, refMode, readType, value) |
| 102 | if done || ctx.HasError() { |
| 103 | return |
| 104 | } |
| 105 | if readType && typeID != uint32(BINARY) && typeID != uint32(UINT8_ARRAY) { |
| 106 | ctx.SetError(DeserializationErrorf("slice type mismatch: expected BINARY (%d) or UINT8_ARRAY (%d), got %d", BINARY, UINT8_ARRAY, typeID)) |
| 107 | return |
| 108 | } |
| 109 | s.ReadData(ctx, value) |
| 110 | } |
| 111 | |
| 112 | func (s encodedByteSliceSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) { |
| 113 | s.Read(ctx, refMode, false, false, value) |
no test coverage detected