diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-02-11 22:51:25 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-02-11 22:51:25 +0000 |
commit | 3f958097632256329cdbaf2219e2ba15325e9c52 (patch) | |
tree | e7616f7db3709d68ae51d6da0ef8ce44600bd33f /src/uuid.cpp | |
parent | f4b191f0ea396b58465bfba40749977780a3af58 (diff) | |
download | libbu++-3f958097632256329cdbaf2219e2ba15325e9c52.tar.gz libbu++-3f958097632256329cdbaf2219e2ba15325e9c52.tar.bz2 libbu++-3f958097632256329cdbaf2219e2ba15325e9c52.tar.xz libbu++-3f958097632256329cdbaf2219e2ba15325e9c52.zip |
Hey, formatter, awesome, and look at that...I'm adding uuid support.
Diffstat (limited to '')
-rw-r--r-- | src/uuid.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/uuid.cpp b/src/uuid.cpp new file mode 100644 index 0000000..8a30e2a --- /dev/null +++ b/src/uuid.cpp | |||
@@ -0,0 +1,18 @@ | |||
1 | #include "bu/uuid.h" | ||
2 | |||
3 | Bu::Uuid::Uuid() | ||
4 | { | ||
5 | clear(); | ||
6 | } | ||
7 | |||
8 | Bu::Uuid::~Uuid() | ||
9 | { | ||
10 | } | ||
11 | |||
12 | #define msb( i ) (1<<(7-i)) | ||
13 | |||
14 | void Bu::Uuid::clear() | ||
15 | { | ||
16 | data[7] = msb(0); | ||
17 | } | ||
18 | |||