Index: src/core/SkMiniData.h |
diff --git a/src/core/SkMiniData.h b/src/core/SkMiniData.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fd22cea9ca502e8024520c82fe14c0ebdf9c2930 |
--- /dev/null |
+++ b/src/core/SkMiniData.h |
@@ -0,0 +1,24 @@ |
+#ifndef SkMiniData_DEFINED |
+#define SkMiniData_DEFINED |
+ |
+// A class that can store any immutable byte string, |
+// but optimized to store <=7 bytes. |
+ |
+#include "SkTypes.h" |
+ |
+class SkMiniData { |
+public: |
+ SkMiniData(const void*, size_t); |
+ SkMiniData(const SkMiniData&); |
+ ~SkMiniData(); |
+ |
+ const void* data() const; |
+ size_t len() const; |
+ |
+private: |
+ SkMiniData& operator=(const SkMiniData&); |
+ |
+ const uint64_t fRep; |
+}; |
+ |
+#endif//SkMiniData_DEFINED |