File: types.sgml

package info (click to toggle)
jclassinfo 0.19.1-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,036 kB
  • ctags: 579
  • sloc: sh: 8,551; ansic: 6,647; makefile: 247; xml: 93
file content (51 lines) | stat: -rw-r--r-- 1,188 bytes parent folder | download | duplicates (6)
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
44
45
46
47
48
49
50
51
<!-- ##### SECTION Title ##### -->
Byte Order Macros

<!-- ##### SECTION Short_Description ##### -->
A portable way to read big-endian integers.

<!-- ##### SECTION Long_Description ##### -->
<para>
Java uses big-endian byte ordering exclusively. libjclass always
converts everything to native byte order so you might not need these macros.
However, if you need to interprete an unknown attribute these
macros will come in handy.
</para>

<!-- ##### SECTION See_Also ##### -->
<para>

</para>

<!-- ##### MACRO UINT16_NATIVE ##### -->
<para>
Converts an unsigned 16-bit big-endian integer to the native byte order.
</para>

@val: An unsigned 16-bit big-endian integer.


<!-- ##### MACRO INT16_NATIVE ##### -->
<para>
Converts a signed 16-bit big-endian integer to the native byte order.
</para>

@val: A signed 16-bit big-endian integer.


<!-- ##### MACRO UINT32_NATIVE ##### -->
<para>
Converts an unsigned 32-bit big-endian integer to the native byte order.
</para>

@val: An unsigned 32-bit big-endian integer.


<!-- ##### MACRO INT32_NATIVE ##### -->
<para>
Converts a signed 32-bit big-endian integer to the native byte order.
</para>

@val: A signed 32-bit big-endian integer.