File: tagged_array_def.txt

package info (click to toggle)
libsis-base-java 18.09~pre1%2Bgit20180928.45fbd31%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,292 kB
  • sloc: java: 9,037; ansic: 813; xml: 160; sh: 139; makefile: 37
file content (43 lines) | stat: -rw-r--r-- 938 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Tagged Array Definition:

All indices and lengths are given in bytes.

ID: number_type
START INDEX: 0
LENGTH: 1
DESCRIPTION:
    'F' : IEEE floating point numbers
    'I' : Integer numbers
 
ID: endiness
START INDEX: 1
LENGTH: 1
DESCRIPTION:
    'L' : Little Endian
    'B' : Big Endian

ID: element_size
START INDEX: 2
LENGTH: 1
DESCRIPTION:
    Size in Bytes (e.g. 4 for a 32bit number, or 8 for a 64bit number)
    
ID: rank
START INDEX: 3
LENGTH: 1
DESCRIPTION:
    Rank of the array (e.g. 2 for a matrix or 3 for a cube)

ID: dimensions
START INDEX: 4
LENGTH: 4 * rank
DESCRIPTION:
    Dimensions of the array along each axis; each entry is a 32bit (4 byte) integer number in the specified endiness

ID: data
START INDEX: 4 + 4 * rank
LENGTH: prod(dimensions)
DESCRIPTION:
    Number array with prod(dimensions) elements in C row-major order; 
    each element is a number of the specified number_type, endiness and element_size