Example usage for io.vertx.core.buffer Buffer getUnsignedByte

List of usage examples for io.vertx.core.buffer Buffer getUnsignedByte

Introduction

In this page you can find the example usage for io.vertx.core.buffer Buffer getUnsignedByte.

Prototype

short getUnsignedByte(int pos);

Source Link

Document

Returns the unsigned byte at position pos in the Buffer, as a short .

Usage

From source file:examples.BufferExamples.java

License:Open Source License

public void example9() {
    Buffer buff = Buffer.buffer(128);
    int pos = 15;
    buff.setUnsignedByte(pos, (short) 200);
    System.out.println(buff.getUnsignedByte(pos));
}