You are here

private function DecoderTest::bytes in Smart IP 7.2

Same name and namespace in other branches
  1. 6.2 includes/vendor/maxmind-db/reader/tests/MaxMind/Db/Test/Reader/DecoderTest.php \MaxMind\Db\Test\Reader\DecoderTest::bytes()
1 call to DecoderTest::bytes()
DecoderTest::testBytes in includes/vendor/maxmind-db/reader/tests/MaxMind/Db/Test/Reader/DecoderTest.php

File

includes/vendor/maxmind-db/reader/tests/MaxMind/Db/Test/Reader/DecoderTest.php, line 229

Class

DecoderTest

Namespace

MaxMind\Db\Test\Reader

Code

private function bytes() {

  // ugly deep clone
  $bytes = unserialize(serialize($this
    ->strings()));
  foreach ($bytes as $key => $byte_array) {
    $byte_array[0] ^= 0xc0;
    $bytes[$key] = $byte_array;
  }
  return $bytes;
}