Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]

(no description)

File Size: 374 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Decoder:: (15 methods):
  __construct()
  decode()
  decodeByType()
  verifySize()
  decodeArray()
  decodeBoolean()
  decodeDouble()
  decodeFloat()
  decodeInt32()
  decodeMap()
  decodePointer()
  decodeUint()
  sizeFromCtrlByte()
  maybeSwitchByteOrder()
  isPlatformLittleEndian()


Class: Decoder  - X-Ref

__construct($fileStream,int $pointerBase = 0,bool $pointerTestHack = false)   X-Ref

param: resource $fileStream

decode(int $offset)   X-Ref
No description

decodeByType(int $type, int $offset, int $size)   X-Ref
No description

verifySize(int $expected, int $actual)   X-Ref
No description

decodeArray(int $size, int $offset)   X-Ref
No description

decodeBoolean(int $size)   X-Ref
No description

decodeDouble(string $bytes)   X-Ref
No description

decodeFloat(string $bytes)   X-Ref
No description

decodeInt32(string $bytes, int $size)   X-Ref
No description

decodeMap(int $size, int $offset)   X-Ref
No description

decodePointer(int $ctrlByte, int $offset)   X-Ref
No description

decodeUint(string $bytes, int $byteLength)   X-Ref
No description

sizeFromCtrlByte(int $ctrlByte, int $offset)   X-Ref
No description

maybeSwitchByteOrder(string $bytes)   X-Ref
No description

isPlatformLittleEndian()   X-Ref
No description