REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.87 KB
Close
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/wordfence/vendor/wordfence/mmdb-reader/src/DatabaseMetadata.php
Text
Base64
<?php namespace Wordfence\MmdbReader; use Wordfence\MmdbReader\Exception\FormatException; class DatabaseMetadata { const MAX_LENGTH = 131072; //128 * 1024; const FIELD_MAJOR_VERSION = 'binary_format_major_version'; const FIELD_NODE_COUNT = 'node_count'; const FIELD_RECORD_SIZE = 'record_size'; const FIELD_IP_VERSION = 'ip_version'; const FIELD_BUILD_EPOCH = 'build_epoch'; private $data; public function __construct($data) { $this->data = $data; } private function getField($key, $default = null, &$exists = null) { if (!array_key_exists($key, $this->data)) { $exists = false; return $default; } $exists = true; return $this->data[$key]; } private function requireField($key) { $value = $this->getField($key, null, $exists); if (!$exists) throw new FormatException("Metadata field {$key} is missing"); return $value; } public function requireInteger($key) { $value = $this->requireField($key); if (!is_int($value)) throw new FormatException("Field {$key} should be an integer, received: " . print_r($value, true)); return $value; } public function getMajorVersion() { return $this->requireInteger(self::FIELD_MAJOR_VERSION); } public function getNodeCount() { return $this->requireInteger(self::FIELD_NODE_COUNT); } public function getRecordSize() { return $this->requireInteger(self::FIELD_RECORD_SIZE); } public function getIpVersion() { return $this->requireInteger(self::FIELD_IP_VERSION); } public function getBuildEpoch() { return $this->requireInteger(self::FIELD_BUILD_EPOCH); } public static function parse($handle) { $offset = $handle->getPosition(); $parser = new DataFieldParser($handle, $offset); $value = $parser->parseField(); if (!is_array($value)) throw new FormatException('Unexpected field type found when metadata map was expected: ' . print_r($value, true)); return new self($value); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Exception
DIR
-
drwxr-xr-x
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Io
DIR
-
drwxr-xr-x
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ControlByte.php
2.50 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Database.php
6.02 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DatabaseMetadata.php
1.87 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DataFieldParser.php
4.99 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Endianness.php
699 B
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
IntegerParser.php
265 B
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
IpAddress.php
2.56 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
IpAddressInterface.php
497 B
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Node.php
566 B
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
NodeReader.php
2.04 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
NodeRecord.php
1.22 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).