Added PortMessage::ReadString and PortLink::AttachString to support BSession-style string-attachments

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4938 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2003-10-04 00:52:24 +00:00
parent 8123b61c01
commit 9e6ef5ce51
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ public:
void MakeEmpty();
status_t Attach(const void *data, size_t size);
status_t AttachString(const char *string);
template <class Type> status_t Attach(Type data)
{
int32 size = sizeof(Type);

View File

@ -49,6 +49,7 @@ public:
ssize_t BufferSize(void) { return _buffersize; }
status_t Read(void *data, ssize_t size);
status_t ReadString(char **string);
template <class Type> status_t Read(Type *data)
{
int32 size = sizeof(Type);