這個主題說明會傳回位元組陣列之 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()。