Added an alternate ReadString() in case you know how large the string can get.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14601 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-10-31 20:04:59 +00:00
parent 4f86bb69c5
commit 0083a1f3f5
2 changed files with 38 additions and 0 deletions
+1
View File
@@ -28,6 +28,7 @@ class LinkReceiver {
virtual status_t Read(void *data, ssize_t size);
status_t ReadString(char **string);
status_t ReadString(char *buffer, size_t bufferSize);
template <class Type> status_t Read(Type *data)
{
return Read(data, sizeof(Type));