Index: experimental/mac_debugger/debug_blob.h |
diff --git a/experimental/mac_debugger/debug_blob.h b/experimental/mac_debugger/debug_blob.h |
deleted file mode 100644 |
index 01e4eb4fe7b66ac0b5ba69b737c09d26e69c985c..0000000000000000000000000000000000000000 |
--- a/experimental/mac_debugger/debug_blob.h |
+++ /dev/null |
@@ -1,62 +0,0 @@ |
-// Copyright (c) 2011 The Native Client Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
-#ifndef EXPERIMENTAL_LINUX_OOP_DEBUGGER_DEBUG_BLOB_H_ |
-#define EXPERIMENTAL_LINUX_OOP_DEBUGGER_DEBUG_BLOB_H_ |
- |
-#include <deque> |
-#include <string> |
- |
-// Class for working with raw binary data. |
- |
-typedef unsigned char byte; |
- |
-namespace debug { |
-class Blob { |
- public: |
- Blob(); |
- Blob(const Blob& other); |
- Blob(const void* buff, size_t buff_sz); |
- Blob(const char* buff); // NOLINT: I want type conversion. |
- virtual ~Blob(); |
- Blob& operator = (const Blob& other); |
- bool operator == (const Blob& other) const; |
- |
- size_t Size() const; |
- byte operator[] (size_t position) const; |
- byte Front() const; // Returns first byte. |
- byte Back() const; // Returns last byte. |
- byte PopFront(); // Delete first byte. |
- byte PopBack(); // Delete last byte. |
- void PushFront(byte c); // Insert byte at beginning. |
- void PushBack(byte c); // Add byte at the end. |
- void Append(const Blob& other); |
- void Clear(); |
- |
- std::string ToString() const; |
- std::string ToHexString(bool remove_leading_zeroes = true) const; |
- bool LoadFromHexString(const std::string& hex_str); |
- bool LoadFromHexString(const Blob& hex_str); |
- int ToInt() const; |
- void* ToCBuffer() const; |
- |
- void Reverse(); |
- bool Compare(const Blob& blob, size_t to_length = -1) const; |
- bool HasPrefix(const std::string& prefix) const; |
- |
- void Split(const char* delimiters, std::deque<Blob>* tokens) const; |
- |
- static bool HexCharToInt(byte c, unsigned int* result); |
- |
- protected: |
- std::deque<byte> value_; |
-}; |
- |
-class BlobUniTest { |
- public: |
- BlobUniTest(); |
- int Run(std::string* error); // returns 0 if success, error code if failed. |
-}; |
-} // namespace debug |
-#endif // EXPERIMENTAL_LINUX_OOP_DEBUGGER_DEBUG_BLOB_H_ |
- |