io.agora.rtc

## Class Packet

- java.lang.Object
- - io.agora.rtc.Packet

-     public class Packet
      extends java.lang.Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private byte[]` | `buffer`
    `private int` | `size`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Packet()`
    `Packet(byte[] buffer, int size)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getBuffer()`
    `int` | `getSize()`
    `void` | `setBuffer(byte[] buffer)`
    `void` | `setSize(int size)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### buffer

          private byte[] buffer

    - #### size

          private int size

  - ### Constructor Detail

    - #### Packet

          public Packet()

    - #### Packet

          public Packet(byte[] buffer,
                        int size)

  - ### Method Detail

    - #### getBuffer

          public byte[] getBuffer()

    - #### setBuffer

          public void setBuffer(byte[] buffer)

    - #### getSize

          public int getSize()

    - #### setSize

          public void setSize(int size)