pos += bytes2read;
return str;
}
public AMFObject getAMFObject() {
AMFObject amfObj = new AMFObject();
String key = "";
int type = 0;
do {
if (pos >= mbb.length) break;
key = getAMFString();
type = readUint(mbb, pos, 1);
pos++;
amfObj.put(key, getAMFData(type));
} while (key.length() >= 1 || type != 9);
return amfObj;
}