Int32List* MtpDataPacket::getAInt32() {
	Int32List* result = new Int32List;
	int count = getUInt32();
	for (int i = 0; i < count; i++)
		result->push(getInt32());
	return result;
}
예제 #2
0
Int32List* MtpDataPacket::getAInt32() {
    uint32_t count;
    if (!getUInt32(count))
        return NULL;
    Int32List* result = new Int32List;
    for (uint32_t i = 0; i < count; i++) {
        int32_t value;
        if (!getInt32(value)) {
            delete result;
            return NULL;
        }
        result->push(value);
    }
    return result;
}