Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(933)

Unified Diff: experimental/linux_oop_debugger/debug_blob.h

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/linux_oop_debugger/debug_api_linux.cc ('k') | experimental/linux_oop_debugger/debug_blob.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/linux_oop_debugger/debug_blob.h
diff --git a/experimental/linux_oop_debugger/debug_blob.h b/experimental/linux_oop_debugger/debug_blob.h
deleted file mode 100755
index 01e4eb4fe7b66ac0b5ba69b737c09d26e69c985c..0000000000000000000000000000000000000000
--- a/experimental/linux_oop_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_
-
« no previous file with comments | « experimental/linux_oop_debugger/debug_api_linux.cc ('k') | experimental/linux_oop_debugger/debug_blob.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698