芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/libraries.6/vendor/spomky-labs/cbor-php/src/InfiniteMapObject.php
data as $object) { $result .= (string) $object->getKey(); $result .= (string) $object->getValue(); } $bin = hex2bin('FF'); if (false === $bin) { throw new InvalidArgumentException('Unable to convert the data'); } $result .= $bin; return $result; } public function append(CBORObject $key, CBORObject $value): void { $this->data[] = new MapItem($key, $value); } public function count(): int { return count($this->data); } public function getIterator(): Iterator { return new ArrayIterator($this->data); } public function getNormalizedData(bool $ignoreTags = false): array { $result = []; foreach ($this->data as $object) { $result[$object->getKey()->getNormalizedData($ignoreTags)] = $object->getValue()->getNormalizedData($ignoreTags); } return $result; } }