Function Decoder.readBytes

Reads a byte-string written by [Encoder.writeBytes]. if old is not null and has sufficient capacity to take in the bytes being read, the bytes are returned in old.

abstract ubyte[] readBytes() @safe;

Throws

AvroTypeException If this is a stateful reader and byte-string is not the type of the next value to be read