org.apache.qpid.proton.amqp.Symbol.length()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(141)

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

Symbol.length介绍

暂无

代码示例

代码示例来源:origin: org.apache.qpid/proton-j

@Override
protected int getEncodedValueSize(final Symbol val)
{
  return val.length();
}

代码示例来源:origin: com.microsoft.azure.iot/proton-j-azure-iot

@Override
protected int getEncodedValueSize(final Symbol val)
{
  return val.length();
}

代码示例来源:origin: org.apache.qpid/proton-j

@Override
protected int getEncodedValueSize(final Symbol val)
{
  return val.length();
}

代码示例来源:origin: org.apache.qpid/proton

@Override
protected int getEncodedValueSize(final Symbol val)
{
  return val.length();
}

代码示例来源:origin: org.apache.qpid/proton-j-impl

public SymbolEncoding getEncoding(final Symbol val)
{
  return val.length() <= 255 ? _shortSymbolEncoding : _symbolEncoding;
}

代码示例来源:origin: org.apache.qpid/proton-j-impl

@Override
protected int getEncodedValueSize(final Symbol val)
{
  return val.length();
}

代码示例来源:origin: org.apache.qpid/proton-j

@Override
public SymbolEncoding getEncoding(final Symbol val)
{
  return val.length() <= 255 ? _shortSymbolEncoding : _symbolEncoding;
}

代码示例来源:origin: com.microsoft.azure.iot/proton-j-azure-iot

@Override
protected int getEncodedValueSize(final Symbol val)
{
  return val.length();
}

代码示例来源:origin: org.apache.qpid/proton

@Override
protected int getEncodedValueSize(final Symbol val)
{
  return val.length();
}

代码示例来源:origin: org.apache.qpid/proton-j-impl

@Override
protected int getEncodedValueSize(final Symbol val)
{
  return val.length();
}

代码示例来源:origin: org.apache.qpid/proton

public SymbolEncoding getEncoding(final Symbol val)
{
  return val.length() <= 255 ? _shortSymbolEncoding : _symbolEncoding;
}

代码示例来源:origin: com.microsoft.azure.iot/proton-j-azure-iot

public SymbolEncoding getEncoding(final Symbol val)
{
  return val.length() <= 255 ? _shortSymbolEncoding : _symbolEncoding;
}

代码示例来源:origin: Azure/azure-event-hubs-java

return ((Symbol) obj).length() << 1;

代码示例来源:origin: com.microsoft.azure.iot/proton-j-azure-iot

@Override
protected void writeEncodedValue(final Symbol val)
{
  final int length = val.length();
  final EncoderImpl encoder = getEncoder();
  for(int i = 0; i < length; i++)
  {
    encoder.writeRaw((byte)val.charAt(i));
  }
}

代码示例来源:origin: org.apache.qpid/proton-j-impl

@Override
protected void writeEncodedValue(final Symbol val)
{
  final int length = val.length();
  final EncoderImpl encoder = getEncoder();
  for(int i = 0; i < length; i++)
  {
    encoder.writeRaw((byte)val.charAt(i));
  }
}

代码示例来源:origin: org.apache.qpid/proton

@Override
protected void writeEncodedValue(final Symbol val)
{
  final int length = val.length();
  final EncoderImpl encoder = getEncoder();
  for(int i = 0; i < length; i++)
  {
    encoder.writeRaw((byte)val.charAt(i));
  }
}

代码示例来源:origin: org.apache.qpid/proton-j-impl

@Override
protected void writeEncodedValue(final Symbol val)
{
  final int length = val.length();
  final EncoderImpl encoder = getEncoder();
  for(int i = 0; i < length; i++)
  {
    encoder.writeRaw((byte)val.charAt(i));
  }
}

代码示例来源:origin: com.microsoft.azure.iot/proton-j-azure-iot

@Override
protected void writeEncodedValue(final Symbol val)
{
  final int length = val.length();
  final EncoderImpl encoder = getEncoder();
  for(int i = 0; i < length; i++)
  {
    encoder.writeRaw((byte)val.charAt(i));
  }
}

代码示例来源:origin: org.apache.qpid/proton

@Override
protected void writeEncodedValue(final Symbol val)
{
  final int length = val.length();
  final EncoderImpl encoder = getEncoder();
  for(int i = 0; i < length; i++)
  {
    encoder.writeRaw((byte)val.charAt(i));
  }
}

代码示例来源:origin: org.apache.qpid/proton-j

public void fastWrite(EncoderImpl encoder, Symbol symbol)
{
  if (symbol.length() <= 255)
  {
    // Reserve size of body + type encoding and single byte size
    encoder.getBuffer().ensureRemaining(2 + symbol.length());
    encoder.writeRaw(EncodingCodes.SYM8);
    encoder.writeRaw((byte) symbol.length());
    symbol.writeTo(encoder.getBuffer());
  }
  else
  {
    // Reserve size of body + type encoding and four byte size
    encoder.getBuffer().ensureRemaining(5 + symbol.length());
    encoder.writeRaw(EncodingCodes.SYM32);
    encoder.writeRaw(symbol.length());
    symbol.writeTo(encoder.getBuffer());
  }
}

相关文章