--- /dev/null
+/**
+ * © 2008 by David Roden <droden@gmail.com>
+ */
+
+#include "BlobTag.h"
+
+#include <stdlib.h>
+#include <string.h>
+
+BlobTag::BlobTag(int id, void* value, int length): Tag(Blob, id) {
+ this->length = length;
+ this->value = malloc(length);
+ memcpy(this->value, value, length);
+}
+
+BlobTag::~BlobTag() {
+ if (value) {
+ free(value);
+ }
+}
+
+int BlobTag::getSize() {
+ return length;
+}
+
+void* BlobTag::getValue() {
+ return value;
+}
+
--- /dev/null
+/**
+ * © 2008 by David Roden <droden@gmail.com>
+ */
+
+#pragma once
+
+#include "Tag.h"
+
+class BlobTag: public Tag {
+
+public:
+ BlobTag(int id, void* value, int length);
+ ~BlobTag();
+
+ int getSize();
+ void* getValue();
+
+private:
+ int length;
+ void* value;
+
+};
+