本文整理了Java中com.thomsonreuters.upa.codec.Vector.encodeInit()
方法的一些代码示例,展示了Vector.encodeInit()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vector.encodeInit()
方法的具体详情如下:
包路径:com.thomsonreuters.upa.codec.Vector
类名称:Vector
方法名:encodeInit
[英]Prepares vector for encoding. Typical use:
代码示例来源:origin: Refinitiv/Elektron-SDK
while ((ret = _rsslVector.encodeInit(_rsslEncodeIter, 0, 0)) == CodecReturnCodes.BUFFER_TOO_SMALL)
代码示例来源:origin: Refinitiv/Elektron-SDK
if ((retVal = vector.encodeInit(encIter, 128, 0)) < CodecReturnCodes.SUCCESS)
代码示例来源:origin: Refinitiv/Elektron-SDK
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.BUFFER_TOO_SMALL);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.UNSUPPORTED_DATA_TYPE);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
iter.setBufferAndRWFVersion(buf, Codec.majorVersion(), Codec.minorVersion());
vector.applyHasSetDefs();
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
vector.encodedSetDefs(txt);
vector.encodedSummaryData(txt);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
vector.encodedSummaryData().clear();
vector.applyHasSummaryData();
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeSummaryDataComplete(iter, true) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeSummaryDataComplete(iter, false) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.BUFFER_TOO_SMALL);
代码示例来源:origin: Refinitiv/Elektron-SDK
if ((retVal = upaVector.encodeInit(encodeIter, 0, 0) ) < CodecReturnCodes.SUCCESS)
代码示例来源:origin: Refinitiv/Elektron-SDK
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeComplete(iter, true) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeComplete(iter, false) == CodecReturnCodes.SUCCESS);
assertEquals(0, buf.data().position());
代码示例来源:origin: Refinitiv/Elektron-SDK
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encode(iter) == CodecReturnCodes.BUFFER_TOO_SMALL);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encode(iter) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
vectorEntry.encodedData(txt);
assertTrue(vectorEntry.encode(iter) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
ByteBuffer bb = bigBuf2.data();
for (int i = 0; i < 65535; i++)
bigBuf2.data().rewind();
iter.setBufferAndRWFVersion(bigBuf, Codec.majorVersion(), Codec.minorVersion());
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
bb = bigBuf2.data();
for (int i = 0; i < 65536; i++)
代码示例来源:origin: Refinitiv/Elektron-SDK
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encodeInit(iter, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encodeInit(iter, 0) == CodecReturnCodes.BUFFER_TOO_SMALL);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encodeInit(iter, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encodeInit(iter, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
vectorEntry.encodedData(txt);
assertTrue(vectorEntry.encodeInit(iter, 0) == CodecReturnCodes.SUCCESS);
代码示例来源:origin: Refinitiv/Elektron-SDK
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encodeInit(iter, 0) == CodecReturnCodes.SUCCESS);
((EncodeIteratorImpl)iter)._curBufPos = 100000;
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encodeInit(iter, 0) == CodecReturnCodes.SUCCESS);
((EncodeIteratorImpl)iter)._curBufPos = 100000;
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encodeInit(iter, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encodeComplete(iter, true) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encodeInit(iter, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encodeComplete(iter, false) == CodecReturnCodes.SUCCESS);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encodeInit(iter, 0) == CodecReturnCodes.SUCCESS);
assertTrue(vectorEntry.encodeComplete(iter, true) == CodecReturnCodes.SUCCESS);
代码示例来源:origin: Refinitiv/Elektron-SDK
assertEquals(CodecReturnCodes.SUCCESS, vec.encodeInit(eIter, 0, 0));
代码示例来源:origin: Refinitiv/Elektron-SDK
vector.flags(VectorFlags.HAS_SUMMARY_DATA);
ret = vector.encodeInit(encodeIter, 0, 0);
if (ret != CodecReturnCodes.SUCCESS)
代码示例来源:origin: Refinitiv/Elektron-SDK
assertEquals(CodecReturnCodes.SUCCESS, vector.encodeInit(eIter, 0, 0));
else
assertEquals(CodecReturnCodes.BUFFER_TOO_SMALL, vector.encodeInit(eIter, 0, 0));
rollbackEntireContainer = true;
代码示例来源:origin: Refinitiv/Elektron-SDK
if ((ret = encVector.encodeInit(iter, 0, 0)) < CodecReturnCodes.SUCCESS)
代码示例来源:origin: Refinitiv/Elektron-SDK
if ((ret = encVector.encodeInit(iter, 0, 0)) < CodecReturnCodes.SUCCESS)
内容来源于网络,如有侵权,请联系作者删除!