Ejemplo n.º 1
0
QString AmfReader::readString()
{
    char s[2];
    if(buff->read(s, 2) != 2)
        throw AmfInvalidFormatException();

    return readUtf8(AMF_DecodeInt16(s));
}
Ejemplo n.º 2
0
void
AMF_DecodeString(const char *data, AVal *bv)
{
  bv->av_len = AMF_DecodeInt16(data);
  bv->av_val = (bv->av_len > 0) ? (char *)data + 2 : NULL;
}
Ejemplo n.º 3
0
uint32_t inline amf_read_i16(const uint8_t *b)
{
    return (uint32_t)AMF_DecodeInt16((const char*)b);
}