rem: int32 size	= sizeof(Type);  if (4096 - fSendPosition > size){ memcpy(fSendBuffer + fSendPosition, &data, size); fSendPosition += size; return B_OK; } return B_NO_MEMORY;
add: num_attachments++; attachments[num_attachments-1]=pld; bufferlength+=size;
context: 	template <class Type> status_t Attach(Type data)	{		int32 size	= sizeof(Type);		if (4096 - fSendPosition > size){			memcpy(fSendBuffer + fSendPosition, &data, size);			fSendPosition += size;			return B_OK;		}		return B_NO_MEMORY;	}