Archived
1
Fork 0

Read more int types

This commit is contained in:
Joshua Goins 2022-04-14 10:24:04 -04:00
parent ce7c99c3de
commit 8139f399fd

View file

@ -118,14 +118,17 @@ EXD readEXD(EXH& exh, std::string_view path, ExcelDataPagination& page) {
case Int8: case Int8:
c.data = readData<int8_t>(file, offset + column.offset); c.data = readData<int8_t>(file, offset + column.offset);
c.type = "Int"; c.type = "Int";
c.uint64Data = readDataRaw<int8_t>(file, offset + column.offset);
break; break;
case UInt8: case UInt8:
c.data = readData<uint8_t>(file, offset + column.offset); c.data = readData<uint8_t>(file, offset + column.offset);
c.type = "Unsigned Int"; c.type = "Unsigned Int";
c.uint64Data = readDataRaw<uint8_t>(file, offset + column.offset);
break; break;
case Int16: case Int16:
c.data = readData<int16_t>(file, offset + column.offset); c.data = readData<int16_t>(file, offset + column.offset);
c.type = "Int"; c.type = "Int";
c.uint64Data = readDataRaw<int16_t>(file, offset + column.offset);
break; break;
case UInt16: case UInt16:
c.data = readData<uint16_t>(file, offset + column.offset); c.data = readData<uint16_t>(file, offset + column.offset);
@ -134,6 +137,7 @@ EXD readEXD(EXH& exh, std::string_view path, ExcelDataPagination& page) {
case Int32: case Int32:
c.data = readData<int32_t>(file, offset + column.offset); c.data = readData<int32_t>(file, offset + column.offset);
c.type = "Int"; c.type = "Int";
c.uint64Data = readDataRaw<int32_t>(file, offset + column.offset);
break; break;
case UInt32: case UInt32:
c.data = readData<uint32_t>(file, offset + column.offset); c.data = readData<uint32_t>(file, offset + column.offset);