gpt4 book ai didi

org.apache.catalina.tribes.io.XByteBuffer.countPackages()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 16:57:40 24 4
gpt4 key购买 nike

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

XByteBuffer.countPackages介绍

[英]Internal mechanism to make a check if a complete package exists within the buffer
[中]检查缓冲区中是否存在完整包的内部机制

代码示例

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Internal mechanism to make a check if a complete package exists
 * within the buffer
 * @return - true if a complete package (header,compress,size,data,footer) exists within the buffer
 */
public int countPackages() {
  return countPackages(false);
}

代码示例来源:origin: org.apache.tomcat/tomcat-tribes

/**
 * Internal mechanism to make a check if a complete package exists
 * within the buffer
 * @return - true if a complete package (header,compress,size,data,footer) exists within the buffer
 */
public int countPackages() {
  return countPackages(false);
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/tribes

/**
 * Internal mechanism to make a check if a complete package exists
 * within the buffer
 * @return - true if a complete package (header,compress,size,data,footer) exists within the buffer
 */
public int countPackages() {
  return countPackages(false);
}

代码示例来源:origin: org.apache.tomcat/tomcat-tribes

/**
 * Method to check if a package exists in this byte buffer.
 * @return - true if a complete package (header,options,size,data,footer) exists within the buffer
 */
public boolean doesPackageExist()  {
  return (countPackages(true)>0);
}

代码示例来源:origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource

/**
 * Method to check if a package exists in this byte buffer.
 * @return - true if a complete package (header,options,size,data,footer) exists within the buffer
 */
public boolean doesPackageExist()  {
  return (countPackages(true)>0);
}

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Method to check if a package exists in this byte buffer.
 * @return - true if a complete package (header,options,size,data,footer) exists within the buffer
 */
public boolean doesPackageExist()  {
  return (countPackages(true)>0);
}

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Returns the number of packages that the reader has read
 * @return int
 */
public int count() {
  return buffer.countPackages();
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/tribes

/**
 * Returns the number of packages that the reader has read
 * @return int
 */
public int count() {
  return buffer.countPackages();
}

代码示例来源:origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource

/**
 * Returns the number of packages that the reader has read
 * @return int
 */
public int count() {
  return buffer.countPackages();
}

代码示例来源:origin: org.apache.tomcat/tomcat-tribes

/**
 * Returns the number of packages that the reader has read
 * @return int
 */
public int count() {
  return buffer.countPackages();
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/tribes

/**
 * Method to check if a package exists in this byte buffer.
 * @return - true if a complete package (header,options,size,data,footer) exists within the buffer
 */
public boolean doesPackageExist()  {
  return (countPackages(true)>0);
}

代码示例来源:origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource

/**
 * Internal mechanism to make a check if a complete package exists
 * within the buffer
 * @return - true if a complete package (header,compress,size,data,footer) exists within the buffer
 */
public int countPackages() {
  return countPackages(false);
}

代码示例来源:origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource

public boolean hasPackage() {
  return buffer.countPackages(true)>0;
}
/**

代码示例来源:origin: codefollower/Tomcat-Research

public boolean hasPackage() {
  return buffer.countPackages(true)>0;
}
/**

代码示例来源:origin: org.apache.geronimo.ext.tomcat/tribes

public boolean hasPackage() {
  return buffer.countPackages(true)>0;
}
/**

代码示例来源:origin: codefollower/Tomcat-Research

public int append(byte[] data,int off,int len, boolean count) {
  buffer.append(data,off,len);
  int pkgCnt = -1;
  if ( count ) pkgCnt = buffer.countPackages();
  return pkgCnt;
}

代码示例来源:origin: org.apache.tomcat/tomcat-tribes

public int append(byte[] data,int off,int len, boolean count) {
  buffer.append(data,off,len);
  int pkgCnt = -1;
  if ( count ) pkgCnt = buffer.countPackages();
  return pkgCnt;
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/tribes

public int append(byte[] data,int off,int len, boolean count) throws java.io.IOException {
  buffer.append(data,off,len);
  int pkgCnt = -1;
  if ( count ) pkgCnt = buffer.countPackages();
  return pkgCnt;
}

代码示例来源:origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource

public int append(byte[] data,int off,int len, boolean count) throws java.io.IOException {
  buffer.append(data,off,len);
  int pkgCnt = -1;
  if ( count ) pkgCnt = buffer.countPackages();
  return pkgCnt;
}

代码示例来源:origin: org.apache.tomcat/tomcat-tribes

/**
 * Append new bytes to buffer.
 * @see XByteBuffer#countPackages()
 * @param data new transfer buffer
 * @param len length in buffer
 * @param count whether to return the count
 * @return number of messages that was sent to callback (or -1 if count == false)
 */
public int append(ByteBuffer data, int len, boolean count) {
  buffer.append(data,len);
  int pkgCnt = -1;
  if ( count ) pkgCnt = buffer.countPackages();
  return pkgCnt;
}

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com