Revert "...and also fix a mismatched prototype"
This reverts commit 6555120f3b.
This commit is contained in:
@@ -26,7 +26,7 @@ public:
|
|||||||
|
|
||||||
// Insert data at the end of the buffer. The buffer will be increased to
|
// Insert data at the end of the buffer. The buffer will be increased to
|
||||||
// accomodate the data if needed.
|
// accomodate the data if needed.
|
||||||
ssize_t Write(const void* data, size_t size);
|
status_t Write(const void* data, size_t size);
|
||||||
|
|
||||||
// Remove data from the start of the buffer. Move the buffer start
|
// Remove data from the start of the buffer. Move the buffer start
|
||||||
// pointer to point to the data following it.
|
// pointer to point to the data following it.
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ DynamicBuffer::InitCheck() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ssize_t
|
status_t
|
||||||
DynamicBuffer::Write(const void* data, size_t size)
|
DynamicBuffer::Write(const void* data, size_t size)
|
||||||
{
|
{
|
||||||
if (fInit != B_OK)
|
if (fInit != B_OK)
|
||||||
@@ -80,7 +80,7 @@ DynamicBuffer::Write(const void* data, size_t size)
|
|||||||
memcpy(fBuffer + fDataEnd, data, size);
|
memcpy(fBuffer + fDataEnd, data, size);
|
||||||
fDataEnd += size;
|
fDataEnd += size;
|
||||||
|
|
||||||
return size;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user