(ReadContext context)
| 285 | } |
| 286 | |
| 287 | public override ulong[] ReadData(ReadContext context) |
| 288 | { |
| 289 | int byteSize = checked((int)context.Reader.ReadVarUInt32()); |
| 290 | if ((byteSize & 7) != 0) |
| 291 | { |
| 292 | throw new InvalidDataException("uint64 array byte size mismatch"); |
| 293 | } |
| 294 | |
| 295 | context.Reader.CheckBound(byteSize); |
| 296 | ulong[] values = new ulong[byteSize / 8]; |
| 297 | for (int i = 0; i < values.Length; i++) |
| 298 | { |
| 299 | values[i] = context.Reader.ReadUInt64(); |
| 300 | } |
| 301 | |
| 302 | return values; |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | internal sealed class Float16ArraySerializer : Serializer<Half[]> |
nothing calls this directly
no test coverage detected