<?php

// Start of msgpack 0.5.0

const MESSAGEPACK_OPT_PHPONLY = -1001;

/**
 * Serialize a variable into msgpack format
 * @param mixed $value
 * @return string
 * @since 5.0
 */
function msgpack_serialize($value) {}

/**
 * Unserialize $str
 * @param string $str
 * @param null|array|string|object $object <p>
 *  Undocumented template parameter
 * </p>
 * @return mixed
 * @since 5.0
 */
function msgpack_unserialize($str, $object=NULL) {}

/**
 * Alias of msgpack_serialize
 * @param mixed $value
 * @return string
 * @since 5.0
 */
function msgpack_pack($value) {}

/**
 * Alias of msgpack_unserialize
 * @param string $str
 * @param null|array|string|object $object <p>
 *  Undocumented template parameter
 *  <p>
 * @return mixed
 * @since 5.0
 */
function msgpack_unpack($str, $object = null)
{
}

class MessagePack
{
    const OPT_PHPONLY = 1;

    public function __construct($opt)
    {
    }

    public function setOption($option, $value)
    {
    }

    public function pack($value)
    {
    }

    public function unpack($str, $object)
    {
    }

    public function unpacker()
    {

    }
}

class MessagePackUnpacker
{
    public function __construct($opt)
    {
    }

    public function __destruct()
    {
    }

    public function setOption($option, $value)
    {
    }

    public function feed($str)
    {
    }

    public function execute($str, &$offset)
    {
    }

    public function data($object)
    {

    }

    public function reset()
    {

    }
}
