Top Fields Constructors Methods
org.glassfish.tyrus.core

pack-priv Class Masker

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer

Field Summary

Modifier and TypeField and Description
private volatile ByteBuffer
private volatile int
private volatile byte[]

Constructor Summary

AccessConstructor and Description
public
public
Masker(int mask)

Method Summary

Modifier and TypeMethod and Description
pack-priv byte
get()

pack-priv byte[]
get(final int size)

public byte[]
public void
mask(byte[] target, int location, byte[] bytes, int length)

public void
public void
public byte[]
unmask(int count)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferback to summary
private volatile ByteBuffer buffer
indexback to summary
private volatile int index
maskback to summary
private volatile byte[] mask

Constructor Detail

Maskerback to summary
public Masker(ByteBuffer buffer)
Maskerback to summary
public Masker(int mask)

Method Detail

getback to summary
pack-priv byte get()
getback to summary
pack-priv byte[] get(final int size)
getMaskback to summary
public byte[] getMask()
maskback to summary
public void mask(byte[] target, int location, byte[] bytes, int length)
readMaskback to summary
public void readMask()
setBufferback to summary
public void setBuffer(ByteBuffer buffer)
unmaskback to summary
public byte[] unmask(int count)