* Added BString version of LinkReceiver::ReadString().

* adopted this method for ServerLink as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14750 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-11-07 16:14:05 +00:00
parent ca9e5772c3
commit 41572514dd
4 changed files with 60 additions and 2 deletions
+5
View File
@@ -5,12 +5,16 @@
* Authors:
* DarkWyrm <[email protected]>
* Pahtz <[email protected]>
* Axel Dörfler, [email protected]
*/
#ifndef _LINK_RECEIVER_H
#define _LINK_RECEIVER_H
#include <OS.h>
class BString;
namespace BPrivate {
@@ -28,6 +32,7 @@ class LinkReceiver {
virtual status_t Read(void *data, ssize_t size);
status_t ReadString(char **string);
status_t ReadString(BString& string);
status_t ReadString(char *buffer, size_t bufferSize);
template <class Type> status_t Read(Type *data)
{