Example usage for io.netty.buffer ByteBuf setBoolean

List of usage examples for io.netty.buffer ByteBuf setBoolean

Introduction

In this page you can find the example usage for io.netty.buffer ByteBuf setBoolean.

Prototype

public abstract ByteBuf setBoolean(int index, boolean value);

Source Link

Document

Sets the specified boolean at the specified absolute index in this buffer.

Usage

From source file:common.xandayn.personalizedrecipes_old.common.network.packet.client.ClientRemoveRecipeFromServer.java

License:Open Source License

@Override
public void fromBytes(ByteBuf buf) {
    buf.setInt(0, position);
    buf.setBoolean(1, removeAll);
}