com.thomsonreuters.upa.codec.Vector.encodeInit()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(197)

本文整理了Java中com.thomsonreuters.upa.codec.Vector.encodeInit()方法的一些代码示例,展示了Vector.encodeInit()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vector.encodeInit()方法的具体详情如下:
包路径:com.thomsonreuters.upa.codec.Vector
类名称:Vector
方法名:encodeInit

Vector.encodeInit介绍

[英]Prepares vector for encoding. Typical use:

  1. Call Vector.encodeInit()
  2. Call VectorEntry.encode() or VectorEntry.encodeInit()..VectorEntry.encodeComplete() for each entry using the same buffer
  3. Call Vector.encodeComplete()
    [中]为编码准备向量。典型用途:
    1.呼叫向量。encodeInit()
    2.呼叫VectorEntry。encode()或VectorEntry。encodeInit()。。矢量中心。使用相同缓冲区的每个条目的encodeComplete()
    3.呼叫向量。encodeComplete()

代码示例

代码示例来源: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)

相关文章