From 3f958097632256329cdbaf2219e2ba15325e9c52 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 11 Feb 2009 22:51:25 +0000 Subject: Hey, formatter, awesome, and look at that...I'm adding uuid support. --- src/uuid.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/uuid.cpp (limited to 'src/uuid.cpp') 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 @@ +#include "bu/uuid.h" + +Bu::Uuid::Uuid() +{ + clear(); +} + +Bu::Uuid::~Uuid() +{ +} + +#define msb( i ) (1<<(7-i)) + +void Bu::Uuid::clear() +{ + data[7] = msb(0); +} + -- cgit v1.2.3