public function consumeArray(Buffer $originalBuffer)
    {
        $buffer = $originalBuffer->consumeSlice($originalBuffer->consumeUint32());
        $data = [];
        while (!$buffer->isEmpty()) {
            $data[] = $this->consumeFieldValue($buffer);
        }
        return $data;
    }