double AmfReader::readNumber() { char v[8]; if(buff->read(v, 8) != 8) throw AmfInvalidFormatException(); return AMF_DecodeNumber(v); }
double inline amf_read_dbl(const uint8_t *b) { return (double)AMF_DecodeNumber((const char*)b); }