本文整理匯總了Java中io.netty.buffer.ByteBufOutputStream.writeChars方法的典型用法代碼示例。如果您正苦於以下問題:Java ByteBufOutputStream.writeChars方法的具體用法?Java ByteBufOutputStream.writeChars怎麽用?Java ByteBufOutputStream.writeChars使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類io.netty.buffer.ByteBufOutputStream
的用法示例。
在下文中一共展示了ByteBufOutputStream.writeChars方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: writeData
import io.netty.buffer.ByteBufOutputStream; //導入方法依賴的package包/類
@Override
protected void writeData(ByteBufOutputStream buffer) throws IOException {
buffer.writeInt(tileLocationX);
buffer.writeInt(tileLocationY);
buffer.writeInt(tileLocationZ);
buffer.writeInt(text.length);
for (String string : text) {
buffer.writeInt(string.length());
buffer.writeChars(string);
}
}
示例2: writeData
import io.netty.buffer.ByteBufOutputStream; //導入方法依賴的package包/類
@Override
protected void writeData(ByteBufOutputStream buffer) throws IOException {
buffer.writeInt(posX);
buffer.writeInt(posY);
buffer.writeInt(posZ);
buffer.writeInt(sound.length());
buffer.writeChars(sound);
}
示例3: writeData
import io.netty.buffer.ByteBufOutputStream; //導入方法依賴的package包/類
protected void writeData(ByteBufOutputStream buffer) throws IOException {
buffer.writeInt(tileLocationX);
buffer.writeInt(tileLocationY);
buffer.writeInt(tileLocationZ);
buffer.writeInt(text.length);
for (String string : text) {
buffer.writeInt(string.length());
buffer.writeChars(string);
}
}
示例4: writeData
import io.netty.buffer.ByteBufOutputStream; //導入方法依賴的package包/類
protected void writeData(ByteBufOutputStream buffer) throws IOException {
buffer.writeInt(posX);
buffer.writeInt(posY);
buffer.writeInt(posZ);
buffer.writeInt(sound.length());
buffer.writeChars(sound);
}
示例5: writeData
import io.netty.buffer.ByteBufOutputStream; //導入方法依賴的package包/類
@Override
protected void writeData(ByteBufOutputStream buffer) throws IOException {
buffer.writeInt(entityIdToBeNamed);
buffer.writeInt(entityName.length());
buffer.writeChars(entityName);
}