Revert "DynamicBuffer: implement BDataIO"

This reverts commit 36b1f55a18.
This commit is contained in:
Ingo Weinhold
2014-06-18 22:13:39 +02:00
parent 256080b112
commit 747b401e87
3 changed files with 13 additions and 14 deletions
+4 -5
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2009-2014, Haiku, Inc. All Rights Reserved.
* Copyright 2009, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
@@ -9,11 +9,10 @@
#ifndef _DYNAMIC_BUFFER_H
#define _DYNAMIC_BUFFER_H
#include <DataIO.h>
#include <SupportDefs.h>
class DynamicBuffer : public BDataIO {
class DynamicBuffer {
public:
DynamicBuffer(size_t initialSize = 0);
~DynamicBuffer();
@@ -26,11 +25,11 @@ public:
// Insert data at the end of the buffer. The buffer will be increased to
// accomodate the data if needed.
status_t Write(const void* data, size_t size);
status_t Insert(const void* data, size_t size);
// Remove data from the start of the buffer. Move the buffer start
// pointer to point to the data following it.
ssize_t Read(void* data, size_t size);
status_t Remove(void* data, size_t size);
// Return a pointer to the underlying buffer. Note this will not
// necessarily be a pointer to the start of the allocated memory as the