Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
wp-toolkit
/
vendor
/
cerbero
/
json-parser
/
src
/
Decoders
/
File Content:
SimdjsonDecoder.php
<?php namespace WPToolkitDependenciesIsolationPrefix\Cerbero\JsonParser\Decoders; /** * The decoder using the simdjson extension. * */ final class SimdjsonDecoder extends AbstractDecoder { /** * Instantiate the class. * * @param bool $decodesToArray * @param int $depth */ public function __construct(private readonly bool $decodesToArray = \true, private readonly int $depth = 512) { } /** * Retrieve the decoded value of the given JSON * * @param string $json * @return mixed * @throws \Throwable */ protected function decodeJson(string $json) : mixed { return simdjson_decode($json, $this->decodesToArray, $this->depth); } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
AbstractDecoder.php
808 bytes
0644
ConfigurableDecoder.php
927 bytes
0644
DecodedValue.php
1036 bytes
0644
Decoder.php
313 bytes
0644
JsonDecoder.php
754 bytes
0644
SimdjsonDecoder.php
728 bytes
0644
N4ST4R_ID | Naxtarrr