public function writeInteger($int)
    {
        try {
            $this->getStream()->write(pack('l', $int));
        } catch (StreamException $e) {
            $this->handleStreamException($e, BinaryStreamAccessException::INT, false);
        }
    }