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

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

Introduction

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

Prototype

@Fluent
Buffer setUnsignedByte(int pos, short b);

Source Link

Document

Sets the unsigned byte at position pos in the Buffer to the value b .

The buffer will expand as necessary to accommodate any value written.

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));
}