Class PacDataBuffer

java.lang.Object
net.sf.michaelo.tomcat.pac.PacDataBuffer

public class PacDataBuffer extends Object
A thin wrapper around ByteBuffer to comply with the encoding rules defined by the PACTYPE structure from MS-PAC.
  • Constructor Details

    • PacDataBuffer

      public PacDataBuffer(byte[] pacDataBytes)
      Constructs a PAC data buffer from a byte array.
      Parameters:
      pacDataBytes - PAC data encoded as bytes
  • Method Details

    • position

      public int position()
    • position

      public PacDataBuffer position(int newPosition)
    • skip

      public PacDataBuffer skip(int bytes)
    • align

      protected PacDataBuffer align(int bytes)
    • get

      public PacDataBuffer get(byte[] dst)
    • getInt

      public int getInt()
    • getUnsignedShort

      public int getUnsignedShort()
    • getUnsignedInt

      public long getUnsignedInt()
    • getUnsignedLong

      public BigInteger getUnsignedLong()