Class List Method List File List

# Class: Vertx::Buffer

Inherits:
  Object
  - Object
  - Vertx::Buffer
  show all
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb

## Class Method Summary (collapse)

- + (Object) buffer(param_1 = nil, param_2 = nil)

## Instance Method Summary (collapse)

- - (Object) append_buffer(buff = nil, offset = nil, len = nil)
- - (Object) append_byte(b = nil)
- - (Object) append_double(d = nil)
- - (Object) append_float(f = nil)
- - (Object) append_int(i = nil)
- - (Object) append_int_le(i = nil)
- - (Object) append_long(l = nil)
- - (Object) append_long_le(l = nil)
- - (Object) append_medium(i = nil)
- - (Object) append_medium_le(i = nil)
- - (Object) append_short(s = nil)
- - (Object) append_short_le(s = nil)
- - (Object) append_string(str = nil, enc = nil)
- - (Object) append_unsigned_byte(b = nil)
- - (Object) append_unsigned_int(i = nil)
- - (Object) append_unsigned_int_le(i = nil)
- - (Object) append_unsigned_short(s = nil)
- - (Object) append_unsigned_short_le(s = nil)
- - (Object) copy
- - (Object) get_buffer(start = nil, _end = nil)
- - (Object) get_byte(pos = nil)
- - (Object) get_double(pos = nil)
- - (Object) get_float(pos = nil)
- - (Object) get_int(pos = nil)
- - (Object) get_int_le(pos = nil)
- - (Object) get_long(pos = nil)
- - (Object) get_long_le(pos = nil)
- - (Object) get_medium(pos = nil)
- - (Object) get_medium_le(pos = nil)
- - (Object) get_short(pos = nil)
- - (Object) get_short_le(pos = nil)
- - (Object) get_string(start = nil, _end = nil, enc = nil)
- - (Object) get_unsigned_byte(pos = nil)
- - (Object) get_unsigned_int(pos = nil)
- - (Object) get_unsigned_int_le(pos = nil)
- - (Object) get_unsigned_medium(pos = nil)
- - (Object) get_unsigned_medium_le(pos = nil)
- - (Object) get_unsigned_short(pos = nil)
- - (Object) get_unsigned_short_le(pos = nil)
- - (Buffer) initialize(j_del) constructor
  A new instance of Buffer.
- - (Object) j_del
- - (Object) length
- - (Object) set_buffer(pos = nil, b = nil, offset = nil, len = nil)
- - (Object) set_byte(pos = nil, b = nil)
- - (Object) set_double(pos = nil, d = nil)
- - (Object) set_float(pos = nil, f = nil)
- - (Object) set_int(pos = nil, i = nil)
- - (Object) set_int_le(pos = nil, i = nil)
- - (Object) set_long(pos = nil, l = nil)
- - (Object) set_long_le(pos = nil, l = nil)
- - (Object) set_medium(pos = nil, i = nil)
- - (Object) set_medium_le(pos = nil, i = nil)
- - (Object) set_short(pos = nil, s = nil)
- - (Object) set_short_le(pos = nil, s = nil)
- - (Object) set_string(pos = nil, str = nil, enc = nil)
- - (Object) set_unsigned_byte(pos = nil, b = nil)
- - (Object) set_unsigned_int(pos = nil, i = nil)
- - (Object) set_unsigned_int_le(pos = nil, i = nil)
- - (Object) set_unsigned_short(pos = nil, s = nil)
- - (Object) set_unsigned_short_le(pos = nil, s = nil)
- - (Object) slice(start = nil, _end = nil)
- - (Object) to_json_array
- - (Object) to_json_object
- - (Object) to_string(enc = nil)

## Constructor Details

### - (`Buffer`) initialize(j_del)

Returns a new instance of Buffer

    13
    14
    15
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 13

    def initialize(j_del)
      @j_del = j_del
    end

## Class Method Details

### + (`Object`) buffer(param_1 = nil, param_2 = nil)

Raises:

- (`ArgumentError`)

    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 32

    def self.buffer(param_1=nil,param_2=nil)
      if !block_given? && param_1 == nil && param_2 == nil
        return ::Vertx::Util::Utils.safe_create(Java::IoVertxCoreBuffer::Buffer.java_method(:buffer, []).call(),::Vertx::Buffer)
      elsif param_1.class == Fixnum && !block_given? && param_2 == nil
        return ::Vertx::Util::Utils.safe_create(Java::IoVertxCoreBuffer::Buffer.java_method(:buffer, [Java::int.java_class]).call(param_1),::Vertx::Buffer)
      elsif param_1.class == String && !block_given? && param_2 == nil
        return ::Vertx::Util::Utils.safe_create(Java::IoVertxCoreBuffer::Buffer.java_method(:buffer, [Java::java.lang.String.java_class]).call(param_1),::Vertx::Buffer)
      elsif param_1.class == String && param_2.class == String && !block_given?
        return ::Vertx::Util::Utils.safe_create(Java::IoVertxCoreBuffer::Buffer.java_method(:buffer, [Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(param_1,param_2),::Vertx::Buffer)
      end
      raise ArgumentError, "Invalid arguments when calling buffer(param_1,param_2)"
    end

## Instance Method Details

### - (`Object`) append_buffer(buff = nil, offset = nil, len = nil)

Raises:

- (`ArgumentError`)

    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 265

    def append_buffer(buff=nil,offset=nil,len=nil)
      if buff.class.method_defined?(:j_del) && !block_given? && offset == nil && len == nil
        @j_del.java_method(:appendBuffer, [Java::IoVertxCoreBuffer::Buffer.java_class]).call(buff.j_del)
        return self
      elsif buff.class.method_defined?(:j_del) && offset.class == Fixnum && len.class == Fixnum && !block_given?
        @j_del.java_method(:appendBuffer, [Java::IoVertxCoreBuffer::Buffer.java_class,Java::int.java_class,Java::int.java_class]).call(buff.j_del,offset,len)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_buffer(buff,offset,len)"
    end

### - (`Object`) append_byte(b = nil)

Raises:

- (`ArgumentError`)

    279
    280
    281
    282
    283
    284
    285
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 279

    def append_byte(b=nil)
      if b.class == Fixnum && !block_given?
        @j_del.java_method(:appendByte, [Java::byte.java_class]).call(::Vertx::Util::Utils.to_byte(b))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_byte(b)"
    end

### - (`Object`) append_double(d = nil)

Raises:

- (`ArgumentError`)

    444
    445
    446
    447
    448
    449
    450
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 444

    def append_double(d=nil)
      if d.class == Float && !block_given?
        @j_del.java_method(:appendDouble, [Java::double.java_class]).call(::Vertx::Util::Utils.to_double(d))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_double(d)"
    end

### - (`Object`) append_float(f = nil)

Raises:

- (`ArgumentError`)

    433
    434
    435
    436
    437
    438
    439
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 433

    def append_float(f=nil)
      if f.class == Float && !block_given?
        @j_del.java_method(:appendFloat, [Java::float.java_class]).call(::Vertx::Util::Utils.to_float(f))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_float(f)"
    end

### - (`Object`) append_int(i = nil)

Raises:

- (`ArgumentError`)

    301
    302
    303
    304
    305
    306
    307
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 301

    def append_int(i=nil)
      if i.class == Fixnum && !block_given?
        @j_del.java_method(:appendInt, [Java::int.java_class]).call(i)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_int(i)"
    end

### - (`Object`) append_int_le(i = nil)

Raises:

- (`ArgumentError`)

    312
    313
    314
    315
    316
    317
    318
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 312

    def append_int_le(i=nil)
      if i.class == Fixnum && !block_given?
        @j_del.java_method(:appendIntLE, [Java::int.java_class]).call(i)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_int_le(i)"
    end

### - (`Object`) append_long(l = nil)

Raises:

- (`ArgumentError`)

    367
    368
    369
    370
    371
    372
    373
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 367

    def append_long(l=nil)
      if l.class == Fixnum && !block_given?
        @j_del.java_method(:appendLong, [Java::long.java_class]).call(l)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_long(l)"
    end

### - (`Object`) append_long_le(l = nil)

Raises:

- (`ArgumentError`)

    378
    379
    380
    381
    382
    383
    384
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 378

    def append_long_le(l=nil)
      if l.class == Fixnum && !block_given?
        @j_del.java_method(:appendLongLE, [Java::long.java_class]).call(l)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_long_le(l)"
    end

### - (`Object`) append_medium(i = nil)

Raises:

- (`ArgumentError`)

    345
    346
    347
    348
    349
    350
    351
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 345

    def append_medium(i=nil)
      if i.class == Fixnum && !block_given?
        @j_del.java_method(:appendMedium, [Java::int.java_class]).call(i)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_medium(i)"
    end

### - (`Object`) append_medium_le(i = nil)

Raises:

- (`ArgumentError`)

    356
    357
    358
    359
    360
    361
    362
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 356

    def append_medium_le(i=nil)
      if i.class == Fixnum && !block_given?
        @j_del.java_method(:appendMediumLE, [Java::int.java_class]).call(i)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_medium_le(i)"
    end

### - (`Object`) append_short(s = nil)

Raises:

- (`ArgumentError`)

    389
    390
    391
    392
    393
    394
    395
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 389

    def append_short(s=nil)
      if s.class == Fixnum && !block_given?
        @j_del.java_method(:appendShort, [Java::short.java_class]).call(::Vertx::Util::Utils.to_short(s))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_short(s)"
    end

### - (`Object`) append_short_le(s = nil)

Raises:

- (`ArgumentError`)

    400
    401
    402
    403
    404
    405
    406
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 400

    def append_short_le(s=nil)
      if s.class == Fixnum && !block_given?
        @j_del.java_method(:appendShortLE, [Java::short.java_class]).call(::Vertx::Util::Utils.to_short(s))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_short_le(s)"
    end

### - (`Object`) append_string(str = nil, enc = nil)

Raises:

- (`ArgumentError`)

    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 457

    def append_string(str=nil,enc=nil)
      if str.class == String && !block_given? && enc == nil
        @j_del.java_method(:appendString, [Java::java.lang.String.java_class]).call(str)
        return self
      elsif str.class == String && enc.class == String && !block_given?
        @j_del.java_method(:appendString, [Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(str,enc)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_string(str,enc)"
    end

### - (`Object`) append_unsigned_byte(b = nil)

Raises:

- (`ArgumentError`)

    290
    291
    292
    293
    294
    295
    296
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 290

    def append_unsigned_byte(b=nil)
      if b.class == Fixnum && !block_given?
        @j_del.java_method(:appendUnsignedByte, [Java::short.java_class]).call(::Vertx::Util::Utils.to_short(b))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_unsigned_byte(b)"
    end

### - (`Object`) append_unsigned_int(i = nil)

Raises:

- (`ArgumentError`)

    323
    324
    325
    326
    327
    328
    329
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 323

    def append_unsigned_int(i=nil)
      if i.class == Fixnum && !block_given?
        @j_del.java_method(:appendUnsignedInt, [Java::long.java_class]).call(i)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_unsigned_int(i)"
    end

### - (`Object`) append_unsigned_int_le(i = nil)

Raises:

- (`ArgumentError`)

    334
    335
    336
    337
    338
    339
    340
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 334

    def append_unsigned_int_le(i=nil)
      if i.class == Fixnum && !block_given?
        @j_del.java_method(:appendUnsignedIntLE, [Java::long.java_class]).call(i)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_unsigned_int_le(i)"
    end

### - (`Object`) append_unsigned_short(s = nil)

Raises:

- (`ArgumentError`)

    411
    412
    413
    414
    415
    416
    417
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 411

    def append_unsigned_short(s=nil)
      if s.class == Fixnum && !block_given?
        @j_del.java_method(:appendUnsignedShort, [Java::int.java_class]).call(s)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_unsigned_short(s)"
    end

### - (`Object`) append_unsigned_short_le(s = nil)

Raises:

- (`ArgumentError`)

    422
    423
    424
    425
    426
    427
    428
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 422

    def append_unsigned_short_le(s=nil)
      if s.class == Fixnum && !block_given?
        @j_del.java_method(:appendUnsignedShortLE, [Java::int.java_class]).call(s)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling append_unsigned_short_le(s)"
    end

### - (`Object`) copy

Raises:

- (`ArgumentError`)

    703
    704
    705
    706
    707
    708
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 703

    def copy
      if !block_given?
        return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:copy, []).call(),::Vertx::Buffer)
      end
      raise ArgumentError, "Invalid arguments when calling copy()"
    end

### - (`Object`) get_buffer(start = nil, _end = nil)

Raises:

- (`ArgumentError`)

    238
    239
    240
    241
    242
    243
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 238

    def get_buffer(start=nil,_end=nil)
      if start.class == Fixnum && _end.class == Fixnum && !block_given?
        return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:getBuffer, [Java::int.java_class,Java::int.java_class]).call(start,_end),::Vertx::Buffer)
      end
      raise ArgumentError, "Invalid arguments when calling get_buffer(start,_end)"
    end

### - (`Object`) get_byte(pos = nil)

Raises:

- (`ArgumentError`)

    74
    75
    76
    77
    78
    79
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 74

    def get_byte(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getByte, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_byte(pos)"
    end

### - (`Object`) get_double(pos = nil)

Raises:

- (`ArgumentError`)

    146
    147
    148
    149
    150
    151
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 146

    def get_double(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getDouble, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_double(pos)"
    end

### - (`Object`) get_float(pos = nil)

Raises:

- (`ArgumentError`)

    155
    156
    157
    158
    159
    160
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 155

    def get_float(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getFloat, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_float(pos)"
    end

### - (`Object`) get_int(pos = nil)

Raises:

- (`ArgumentError`)

    92
    93
    94
    95
    96
    97
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 92

    def get_int(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getInt, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_int(pos)"
    end

### - (`Object`) get_int_le(pos = nil)

Raises:

- (`ArgumentError`)

    101
    102
    103
    104
    105
    106
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 101

    def get_int_le(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getIntLE, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_int_le(pos)"
    end

### - (`Object`) get_long(pos = nil)

Raises:

- (`ArgumentError`)

    128
    129
    130
    131
    132
    133
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 128

    def get_long(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getLong, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_long(pos)"
    end

### - (`Object`) get_long_le(pos = nil)

Raises:

- (`ArgumentError`)

    137
    138
    139
    140
    141
    142
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 137

    def get_long_le(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getLongLE, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_long_le(pos)"
    end

### - (`Object`) get_medium(pos = nil)

Raises:

- (`ArgumentError`)

    200
    201
    202
    203
    204
    205
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 200

    def get_medium(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getMedium, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_medium(pos)"
    end

### - (`Object`) get_medium_le(pos = nil)

Raises:

- (`ArgumentError`)

    209
    210
    211
    212
    213
    214
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 209

    def get_medium_le(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getMediumLE, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_medium_le(pos)"
    end

### - (`Object`) get_short(pos = nil)

Raises:

- (`ArgumentError`)

    164
    165
    166
    167
    168
    169
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 164

    def get_short(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getShort, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_short(pos)"
    end

### - (`Object`) get_short_le(pos = nil)

Raises:

- (`ArgumentError`)

    173
    174
    175
    176
    177
    178
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 173

    def get_short_le(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getShortLE, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_short_le(pos)"
    end

### - (`Object`) get_string(start = nil, _end = nil, enc = nil)

Raises:

- (`ArgumentError`)

    250
    251
    252
    253
    254
    255
    256
    257
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 250

    def get_string(start=nil,_end=nil,enc=nil)
      if start.class == Fixnum && _end.class == Fixnum && !block_given? && enc == nil
        return @j_del.java_method(:getString, [Java::int.java_class,Java::int.java_class]).call(start,_end)
      elsif start.class == Fixnum && _end.class == Fixnum && enc.class == String && !block_given?
        return @j_del.java_method(:getString, [Java::int.java_class,Java::int.java_class,Java::java.lang.String.java_class]).call(start,_end,enc)
      end
      raise ArgumentError, "Invalid arguments when calling get_string(start,_end,enc)"
    end

### - (`Object`) get_unsigned_byte(pos = nil)

Raises:

- (`ArgumentError`)

    83
    84
    85
    86
    87
    88
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 83

    def get_unsigned_byte(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getUnsignedByte, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_unsigned_byte(pos)"
    end

### - (`Object`) get_unsigned_int(pos = nil)

Raises:

- (`ArgumentError`)

    110
    111
    112
    113
    114
    115
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 110

    def get_unsigned_int(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getUnsignedInt, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_unsigned_int(pos)"
    end

### - (`Object`) get_unsigned_int_le(pos = nil)

Raises:

- (`ArgumentError`)

    119
    120
    121
    122
    123
    124
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 119

    def get_unsigned_int_le(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getUnsignedIntLE, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_unsigned_int_le(pos)"
    end

### - (`Object`) get_unsigned_medium(pos = nil)

Raises:

- (`ArgumentError`)

    218
    219
    220
    221
    222
    223
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 218

    def get_unsigned_medium(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getUnsignedMedium, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_unsigned_medium(pos)"
    end

### - (`Object`) get_unsigned_medium_le(pos = nil)

Raises:

- (`ArgumentError`)

    227
    228
    229
    230
    231
    232
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 227

    def get_unsigned_medium_le(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getUnsignedMediumLE, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_unsigned_medium_le(pos)"
    end

### - (`Object`) get_unsigned_short(pos = nil)

Raises:

- (`ArgumentError`)

    182
    183
    184
    185
    186
    187
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 182

    def get_unsigned_short(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getUnsignedShort, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_unsigned_short(pos)"
    end

### - (`Object`) get_unsigned_short_le(pos = nil)

Raises:

- (`ArgumentError`)

    191
    192
    193
    194
    195
    196
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 191

    def get_unsigned_short_le(pos=nil)
      if pos.class == Fixnum && !block_given?
        return @j_del.java_method(:getUnsignedShortLE, [Java::int.java_class]).call(pos)
      end
      raise ArgumentError, "Invalid arguments when calling get_unsigned_short_le(pos)"
    end

### - (`Object`) j_del

    18
    19
    20
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 18

    def j_del
      @j_del
    end

### - (`Object`) length

Raises:

- (`ArgumentError`)

    695
    696
    697
    698
    699
    700
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 695

    def length
      if !block_given?
        return @j_del.java_method(:length, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling length()"
    end

### - (`Object`) set_buffer(pos = nil, b = nil, offset = nil, len = nil)

Raises:

- (`ArgumentError`)

    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 666

    def set_buffer(pos=nil,b=nil,offset=nil,len=nil)
      if pos.class == Fixnum && b.class.method_defined?(:j_del) && !block_given? && offset == nil && len == nil
        @j_del.java_method(:setBuffer, [Java::int.java_class,Java::IoVertxCoreBuffer::Buffer.java_class]).call(pos,b.j_del)
        return self
      elsif pos.class == Fixnum && b.class.method_defined?(:j_del) && offset.class == Fixnum && len.class == Fixnum && !block_given?
        @j_del.java_method(:setBuffer, [Java::int.java_class,Java::IoVertxCoreBuffer::Buffer.java_class,Java::int.java_class,Java::int.java_class]).call(pos,b.j_del,offset,len)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_buffer(pos,b,offset,len)"
    end

### - (`Object`) set_byte(pos = nil, b = nil)

Raises:

- (`ArgumentError`)

    472
    473
    474
    475
    476
    477
    478
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 472

    def set_byte(pos=nil,b=nil)
      if pos.class == Fixnum && b.class == Fixnum && !block_given?
        @j_del.java_method(:setByte, [Java::int.java_class,Java::byte.java_class]).call(pos,::Vertx::Util::Utils.to_byte(b))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_byte(pos,b)"
    end

### - (`Object`) set_double(pos = nil, d = nil)

Raises:

- (`ArgumentError`)

    592
    593
    594
    595
    596
    597
    598
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 592

    def set_double(pos=nil,d=nil)
      if pos.class == Fixnum && d.class == Float && !block_given?
        @j_del.java_method(:setDouble, [Java::int.java_class,Java::double.java_class]).call(pos,::Vertx::Util::Utils.to_double(d))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_double(pos,d)"
    end

### - (`Object`) set_float(pos = nil, f = nil)

Raises:

- (`ArgumentError`)

    604
    605
    606
    607
    608
    609
    610
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 604

    def set_float(pos=nil,f=nil)
      if pos.class == Fixnum && f.class == Float && !block_given?
        @j_del.java_method(:setFloat, [Java::int.java_class,Java::float.java_class]).call(pos,::Vertx::Util::Utils.to_float(f))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_float(pos,f)"
    end

### - (`Object`) set_int(pos = nil, i = nil)

Raises:

- (`ArgumentError`)

    496
    497
    498
    499
    500
    501
    502
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 496

    def set_int(pos=nil,i=nil)
      if pos.class == Fixnum && i.class == Fixnum && !block_given?
        @j_del.java_method(:setInt, [Java::int.java_class,Java::int.java_class]).call(pos,i)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_int(pos,i)"
    end

### - (`Object`) set_int_le(pos = nil, i = nil)

Raises:

- (`ArgumentError`)

    508
    509
    510
    511
    512
    513
    514
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 508

    def set_int_le(pos=nil,i=nil)
      if pos.class == Fixnum && i.class == Fixnum && !block_given?
        @j_del.java_method(:setIntLE, [Java::int.java_class,Java::int.java_class]).call(pos,i)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_int_le(pos,i)"
    end

### - (`Object`) set_long(pos = nil, l = nil)

Raises:

- (`ArgumentError`)

    568
    569
    570
    571
    572
    573
    574
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 568

    def set_long(pos=nil,l=nil)
      if pos.class == Fixnum && l.class == Fixnum && !block_given?
        @j_del.java_method(:setLong, [Java::int.java_class,Java::long.java_class]).call(pos,l)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_long(pos,l)"
    end

### - (`Object`) set_long_le(pos = nil, l = nil)

Raises:

- (`ArgumentError`)

    580
    581
    582
    583
    584
    585
    586
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 580

    def set_long_le(pos=nil,l=nil)
      if pos.class == Fixnum && l.class == Fixnum && !block_given?
        @j_del.java_method(:setLongLE, [Java::int.java_class,Java::long.java_class]).call(pos,l)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_long_le(pos,l)"
    end

### - (`Object`) set_medium(pos = nil, i = nil)

Raises:

- (`ArgumentError`)

    544
    545
    546
    547
    548
    549
    550
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 544

    def set_medium(pos=nil,i=nil)
      if pos.class == Fixnum && i.class == Fixnum && !block_given?
        @j_del.java_method(:setMedium, [Java::int.java_class,Java::int.java_class]).call(pos,i)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_medium(pos,i)"
    end

### - (`Object`) set_medium_le(pos = nil, i = nil)

Raises:

- (`ArgumentError`)

    556
    557
    558
    559
    560
    561
    562
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 556

    def set_medium_le(pos=nil,i=nil)
      if pos.class == Fixnum && i.class == Fixnum && !block_given?
        @j_del.java_method(:setMediumLE, [Java::int.java_class,Java::int.java_class]).call(pos,i)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_medium_le(pos,i)"
    end

### - (`Object`) set_short(pos = nil, s = nil)

Raises:

- (`ArgumentError`)

    616
    617
    618
    619
    620
    621
    622
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 616

    def set_short(pos=nil,s=nil)
      if pos.class == Fixnum && s.class == Fixnum && !block_given?
        @j_del.java_method(:setShort, [Java::int.java_class,Java::short.java_class]).call(pos,::Vertx::Util::Utils.to_short(s))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_short(pos,s)"
    end

### - (`Object`) set_short_le(pos = nil, s = nil)

Raises:

- (`ArgumentError`)

    628
    629
    630
    631
    632
    633
    634
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 628

    def set_short_le(pos=nil,s=nil)
      if pos.class == Fixnum && s.class == Fixnum && !block_given?
        @j_del.java_method(:setShortLE, [Java::int.java_class,Java::short.java_class]).call(pos,::Vertx::Util::Utils.to_short(s))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_short_le(pos,s)"
    end

### - (`Object`) set_string(pos = nil, str = nil, enc = nil)

Raises:

- (`ArgumentError`)

    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 682

    def set_string(pos=nil,str=nil,enc=nil)
      if pos.class == Fixnum && str.class == String && !block_given? && enc == nil
        @j_del.java_method(:setString, [Java::int.java_class,Java::java.lang.String.java_class]).call(pos,str)
        return self
      elsif pos.class == Fixnum && str.class == String && enc.class == String && !block_given?
        @j_del.java_method(:setString, [Java::int.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(pos,str,enc)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_string(pos,str,enc)"
    end

### - (`Object`) set_unsigned_byte(pos = nil, b = nil)

Raises:

- (`ArgumentError`)

    484
    485
    486
    487
    488
    489
    490
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 484

    def set_unsigned_byte(pos=nil,b=nil)
      if pos.class == Fixnum && b.class == Fixnum && !block_given?
        @j_del.java_method(:setUnsignedByte, [Java::int.java_class,Java::short.java_class]).call(pos,::Vertx::Util::Utils.to_short(b))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_unsigned_byte(pos,b)"
    end

### - (`Object`) set_unsigned_int(pos = nil, i = nil)

Raises:

- (`ArgumentError`)

    520
    521
    522
    523
    524
    525
    526
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 520

    def set_unsigned_int(pos=nil,i=nil)
      if pos.class == Fixnum && i.class == Fixnum && !block_given?
        @j_del.java_method(:setUnsignedInt, [Java::int.java_class,Java::long.java_class]).call(pos,i)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_unsigned_int(pos,i)"
    end

### - (`Object`) set_unsigned_int_le(pos = nil, i = nil)

Raises:

- (`ArgumentError`)

    532
    533
    534
    535
    536
    537
    538
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 532

    def set_unsigned_int_le(pos=nil,i=nil)
      if pos.class == Fixnum && i.class == Fixnum && !block_given?
        @j_del.java_method(:setUnsignedIntLE, [Java::int.java_class,Java::long.java_class]).call(pos,i)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_unsigned_int_le(pos,i)"
    end

### - (`Object`) set_unsigned_short(pos = nil, s = nil)

Raises:

- (`ArgumentError`)

    640
    641
    642
    643
    644
    645
    646
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 640

    def set_unsigned_short(pos=nil,s=nil)
      if pos.class == Fixnum && s.class == Fixnum && !block_given?
        @j_del.java_method(:setUnsignedShort, [Java::int.java_class,Java::int.java_class]).call(pos,s)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_unsigned_short(pos,s)"
    end

### - (`Object`) set_unsigned_short_le(pos = nil, s = nil)

Raises:

- (`ArgumentError`)

    652
    653
    654
    655
    656
    657
    658
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 652

    def set_unsigned_short_le(pos=nil,s=nil)
      if pos.class == Fixnum && s.class == Fixnum && !block_given?
        @j_del.java_method(:setUnsignedShortLE, [Java::int.java_class,Java::int.java_class]).call(pos,s)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling set_unsigned_short_le(pos,s)"
    end

### - (`Object`) slice(start = nil, _end = nil)

Raises:

- (`ArgumentError`)

    715
    716
    717
    718
    719
    720
    721
    722
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 715

    def slice(start=nil,_end=nil)
      if !block_given? && start == nil && _end == nil
        return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:slice, []).call(),::Vertx::Buffer)
      elsif start.class == Fixnum && _end.class == Fixnum && !block_given?
        return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:slice, [Java::int.java_class,Java::int.java_class]).call(start,_end),::Vertx::Buffer)
      end
      raise ArgumentError, "Invalid arguments when calling slice(start,_end)"
    end

### - (`Object`) to_json_array

Raises:

- (`ArgumentError`)

    65
    66
    67
    68
    69
    70
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 65

    def to_json_array
      if !block_given?
        return @j_del.java_method(:toJsonArray, []).call() != nil ? JSON.parse(@j_del.java_method(:toJsonArray, []).call().encode) : nil
      end
      raise ArgumentError, "Invalid arguments when calling to_json_array()"
    end

### - (`Object`) to_json_object

Raises:

- (`ArgumentError`)

    57
    58
    59
    60
    61
    62
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 57

    def to_json_object
      if !block_given?
        return @j_del.java_method(:toJsonObject, []).call() != nil ? JSON.parse(@j_del.java_method(:toJsonObject, []).call().encode) : nil
      end
      raise ArgumentError, "Invalid arguments when calling to_json_object()"
    end

### - (`Object`) to_string(enc = nil)

Raises:

- (`ArgumentError`)

    47
    48
    49
    50
    51
    52
    53
    54
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/buffer.rb', line 47

    def to_string(enc=nil)
      if !block_given? && enc == nil
        return @j_del.java_method(:toString, []).call()
      elsif enc.class == String && !block_given?
        return @j_del.java_method(:toString, [Java::java.lang.String.java_class]).call(enc)
      end
      raise ArgumentError, "Invalid arguments when calling to_string(enc)"
    end