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:
parent
8123b61c01
commit
9e6ef5ce51
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user