You are here

private function Decoder::zeroPadLeft in Smart IP 6.2

Same name and namespace in other branches
  1. 7.2 includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php \MaxMind\Db\Reader\Decoder::zeroPadLeft()
3 calls to Decoder::zeroPadLeft()
Decoder::decodeBigUint in includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php
Decoder::decodeInt32 in includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php
Decoder::decodeUint in includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php

File

includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php, line 293

Class

Decoder

Namespace

MaxMind\Db\Reader

Code

private function zeroPadLeft($content, $desiredLength) {
  return str_pad($content, $desiredLength, "\0", STR_PAD_LEFT);
}