Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2D33109B9 for ; Fri, 13 Feb 2015 21:24:02 +0000 (UTC) Received: (qmail 64875 invoked by uid 500); 13 Feb 2015 21:23:51 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 64838 invoked by uid 500); 13 Feb 2015 21:23:51 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 64827 invoked by uid 99); 13 Feb 2015 21:23:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 21:23:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [81.169.175.157] (HELO h741468.serverkompetenz.net) (81.169.175.157) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 21:23:46 +0000 Received: from [192.168.123.214] (unknown [109.172.12.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by h741468 (Postfix) with ESMTPSA id CF4361E for ; Fri, 13 Feb 2015 22:22:53 +0100 (CET) Message-ID: <54DE6B01.2010005@logit-ag.de> Date: Sat, 14 Feb 2015 00:22:09 +0300 From: Michael Ivanov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "users@qpid.apache.org" Subject: pn_data_format Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hallo, I am trying to use proton routine for data formatting. pn_data_format checks suire of provided buffer and in case it is not enough just refuses to copy anything at all. Is it possible to find out how much does it need beforehand? Ideally would be if one had the possibility to get the pointer to this internal string (data->str) which already holds the string representation of data. Does this option exist? Best regards, -- \ / | | (OvO) | Mikhail Iwanow | (^^^) | Voice: +7 (911) 223-1300 | \^/ | E-mail: ivans@logit-ag.de | ^ ^ | | --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org