Int64List* MtpDataPacket::getAInt64() { Int64List* result = new Int64List; int count = getUInt32(); for (int i = 0; i < count; i++) result->push_back(getInt64()); return result; }
Int64List* MtpDataPacket::getAInt64() { uint32_t count; if (!getUInt32(count)) return NULL; Int64List* result = new Int64List; for (uint32_t i = 0; i < count; i++) { int64_t value; if (!getInt64(value)) { delete result; return NULL; } result->push(value); } return result; }