Push latest work
This commit is contained in:
parent
f8918b9fcf
commit
852ddf8972
2 changed files with 30 additions and 2 deletions
|
@ -102,11 +102,33 @@ class UUID {
|
|||
|
||||
layer.resetPosition();
|
||||
|
||||
String csv = "";
|
||||
for (int byte in layer.readBytes(16)) {
|
||||
csv += "0x${byte.toRadixString(16)}, ";
|
||||
}
|
||||
|
||||
print("BYTES CSV: ${csv}");
|
||||
|
||||
layer.resetPosition();
|
||||
|
||||
var msb = layer.readUnsignedLong();
|
||||
var lsb = layer.readUnsignedLong();
|
||||
|
||||
if (msb < 0) print("Most significant bit is negative!");
|
||||
if (lsb < 0) print("Least significant bit is negative!");
|
||||
layer.clear();
|
||||
layer.writeUnsignedLong(lsb);
|
||||
layer.resetPosition();
|
||||
|
||||
csv = "";
|
||||
for (int byte in layer.readBytes(8)) {
|
||||
csv += "0x${byte.toRadixString(16)}, ";
|
||||
}
|
||||
|
||||
print("BYTES CSV: ${csv}");
|
||||
|
||||
if (msb < 0) print("Most significant bit is negative! ${msb}");
|
||||
if (lsb < 0) print("Least significant bit is negative! ${lsb}");
|
||||
|
||||
print("Forming UUID using MSB-LSB - ${msb} - ${lsb}");
|
||||
return UUID(msb, lsb);
|
||||
}
|
||||
case 4:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue