本文整理了Java中com.thomsonreuters.upa.codec.Buffer.clear()
方法的一些代码示例,展示了Buffer.clear()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.clear()
方法的具体详情如下:
包路径:com.thomsonreuters.upa.codec.Buffer
类名称:Buffer
方法名:clear
[英]Clears the buffer by setting its underlying ByteBuffer to null and its length and position to 0. If the underlying ByteBuffer is not referenced in any other place, it will be a subject to GC.
[中]通过将其基础ByteBuffer设置为null,将其长度和位置设置为0来清除缓冲区。如果基础ByteBuffer未在任何其他位置引用,则它将成为GC的主题。
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public void clear()
{
_encodedData.clear();
}
代码示例来源:origin: Refinitiv/Elektron-SDK
/**
* Clears an RDM Service Data.
*/
public void clear()
{
flags = 0;
dataType = DataTypes.NO_DATA;
data.clear();
action = FilterEntryActions.SET;
type = Directory.DataTypes.NONE;
}
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public void clear()
{
_fieldId = 0;
_dataType = 0;
_encodedData.clear();
}
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public void clear()
{
_flags = 0;
_action = 0;
_permData.clear();
_encodedKey.clear();
_encodedData.clear();
}
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public void clear()
{
_name.clear();
_dataType = 0;
_encodedData.clear();
}
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public void clear()
{
_name.clear();
_dataType = 0;
}
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public void clear()
{
_primitiveType = 0;
_itemLength = 0;
_encodedData.clear();
}
代码示例来源:origin: Refinitiv/Elektron-SDK
/**
* Clears the current contents of the server info object and prepares it
* for re-use.
*/
public void clear()
{
hostName.clear();
port = 0;
loadFactor = 65535;
serverType = ServerTypes.STANDBY;
serverIndex = 0;
}
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public void clear()
{
_streamState = StreamStates.UNSPECIFIED;
_dataState = DataStates.SUSPECT;
_code = StateCodes.NONE;
_text.clear();
}
代码示例来源:origin: Refinitiv/Elektron-SDK
public void clear()
{
flags = 0;
applicationId.clear();
applicationName.clear();
position.clear();
providePermissionProfile = 1;
providePermissionExpressions = 1;
singleOpen = 1;
allowSuspectData = 1;
supportProviderDictionaryDownload = 0;
}
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public void clear()
{
_flags = 0;
_dictionaryId = 0;
_fieldListNum = 0;
_setId = 0;
_encodedSetData.clear();
_encodedEntries.clear();
}
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public void clear()
{
_flags = 0;
_containerType = DataTypes.CONTAINER_TYPE_MIN;
_encodedSetDefs.clear();
_encodedSummaryData.clear();
_totalCountHint = 0;
_encodedEntries.clear();
}
代码示例来源:origin: Refinitiv/Elektron-SDK
public void clear()
{
_opCode = OpCodes.ACK;
_sourceName.clear();
_destName.clear();
_identifier = 0;
}
代码示例来源:origin: Refinitiv/Elektron-SDK
public void clear()
{
_opCode = OpCodes.DATA;
_sourceName.clear();
_destName.clear();
_identifier = 0;
_timeout = QueueDataTimeoutCode.INFINITE;
_dataBuffer.clear();
_flags = 0;
_queueDepth = 0;
}
}
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public void clear()
{
_flags = 0;
_elementListNum = 0;
_setId = 0;
_encodedSetData.clear();
_encodedEntries.clear();
}
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public int encodeBlank(EncodeIterator iter)
{
_encodedData.clear();
return Encoders.encodeElementEntry(iter, this, null);
}
代码示例来源:origin: Refinitiv/Elektron-SDK
public void clear()
{
super.clear();
flags = 0;
serviceId = 0;
dictionaryName.clear();
verbosity = Dictionary.VerbosityValues.NORMAL;
}
代码示例来源:origin: Refinitiv/Elektron-SDK
/**
* Clears the current contents of this object and prepares it for re-use.
*/
public void clear()
{
super.clear();
itemName.clear();
partNo = -1;
}
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public RmtesBuffer clear()
{
_rsslBuffer.clear();
_rsslRmtesCacheBuffer.clear();
_rsslRmtesBuffer.clear();
_decodedUTF16BufferSet = false;
_decodedUTF8BufferSet = false;
_toStringSet = false;
_applyToCache = false;
return this;
}
代码示例来源:origin: Refinitiv/Elektron-SDK
@Override
public int encode(EncodeIterator iter, Buffer data)
{
if ((data == null) || (data.length() == 0))
{
_encodedData.clear();
return Encoders.encodeArrayEntry(iter, _encodedData);
}
return Encoders.encodeArrayEntry(iter, data);
}
内容来源于网络,如有侵权,请联系作者删除!