Class PcapBuffer

java.lang.Object
pcap.api.internal.PcapBuffer
All Implemented Interfaces:
pcap.spi.PacketBuffer

@Inclubating
public class PcapBuffer
extends java.lang.Object
implements pcap.spi.PacketBuffer
Wrapper for pcap packet buffer.
Author:
Ardika Rommy Sanjaya
  • Constructor Summary

    Constructors 
    Constructor Description
    PcapBuffer​(java.foreign.memory.Pointer<java.lang.Byte> pointer, int size)  
  • Method Summary

    Modifier and Type Method Description
    java.nio.ByteBuffer buffer()  
    java.foreign.memory.Pointer<java.lang.Byte> pointer()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PcapBuffer

      public PcapBuffer​(java.foreign.memory.Pointer<java.lang.Byte> pointer, int size) throws java.lang.IllegalAccessException
      Throws:
      java.lang.IllegalAccessException
  • Method Details

    • buffer

      public java.nio.ByteBuffer buffer()
      Specified by:
      buffer in interface pcap.spi.PacketBuffer
    • pointer

      public java.foreign.memory.Pointer<java.lang.Byte> pointer()