Example usage for io.netty.buffer ByteBuf getBoolean

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

Introduction

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

Prototype

public abstract boolean getBoolean(int index);

Source Link

Document

Gets a boolean at the specified absolute (@code 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 toBytes(ByteBuf buf) {
    position = buf.getInt(0);
    removeAll = buf.getBoolean(1);
}

From source file:io.reactiverse.pgclient.impl.codec.DataTypeCodec.java

License:Apache License

private static Boolean binaryDecodeBOOL(int index, int len, ByteBuf buff) {
    return buff.getBoolean(index);
}