WebSphere Message Service Clients for C/C++ and .NET, Version 1.2 作業系統: Linux, Windows

會傳回位元組陣列的 C++ 方法

這個主題說明會傳回位元組陣列之 C++ 方法所用的介面。

在 C++ API 中,某些方法會以參數形式傳回位元組陣列。這些方法皆使用相同的介面來擷取位元組陣列。以下是 PropertyContext.getBytesProperty()(為這些方法之一)範例:

xmsINT getBytesProperty(const String & propertyName,
                        xmsSBYTE *propertyValue,
                        const xmsINT length,
                        xmsINT *actualLength) const;

propertyValue、length 和 actualLength 參數控制擷取位元組陣列的方法, 和會以值形式來傳回位元組陣列的 C 函數中所述的方法完全相同。

其他的方法像是 MapMessage.getBytes()MapMessage.getObject()Property.getByteArray()String.get()


Concept topic

使用條款 | 評比此網頁

時間戳記前次更新: 25 Apr 2006
(C) Copyright IBM Corporation 2005. All Rights Reserved.
本資訊中心採用 Eclipse 技術。(http://www.eclipse.org)