Open Accessibility Menu
Hide

Idx File Online

| Code (decimal) | Code (hex) | Data Type | C equivalent (typical) | .NET equivalent | |----------------|------------|-----------|------------------------|------------------| | 0x08 | 8 | Unsigned byte (uint8) | unsigned char | Byte | | 0x09 | 9 | Signed byte (int8) | signed char | SByte | | 0x0B | 11 | Short (int16) | short | Int16 | | 0x0C | 12 | Int32 (int) | int | Int32 | | 0x0D | 13 | Float (single) | float | Single | | 0x0E | 14 | Double | double | Double |

out->dims = malloc(out->dim_count * sizeof(uint32_t)); for (int i = 0; i < out->dim_count; i++) uint32_t dim_net; if (fread(&dim_net, 4, 1, f) != 1) free(out->dims); fclose(f); return -4; out->dims[i] = ntohl(dim_net); idx file

out->data_size_bytes = total_elements * elem_size; out->data = malloc(out->data_size_bytes); if (fread(out->data, 1, out->data_size_bytes, f) != out->data_size_bytes) free(out->dims); free(out->data); fclose(f); return -6; | Code (decimal) | Code (hex) | Data