| 56 | | |
|---|
| | 56 | /* |
|---|
| | 57 | Note: VirtualBox uses a consistent binary representation of UUIDs on all platforms. For this reason |
|---|
| | 58 | the integer fields comprising the UUID are stored as little endian values. If you want to pass such |
|---|
| | 59 | UUIDs to code which assumes that the integer fields are big endian (often also called network byte |
|---|
| | 60 | order), you need to adjust the contents of the UUID to e.g. achieve the same string representation. |
|---|
| | 61 | The required changes are: |
|---|
| | 62 | * reverse the order of byte 0, 1, 2 and 3 |
|---|
| | 63 | * reverse the order of byte 4 and 5 |
|---|
| | 64 | * reverse the order of byte 6 and 7. |
|---|
| | 65 | Using this conversion you will get identical results when converting the binary UUID to the string |
|---|
| | 66 | representation. |
|---|
| | 67 | */ |
|---|