MaskingKey

Defines masking key for payload data.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(data: Array[Byte], length: Int, position: Long): Array[Byte]

Applies key to length bytes of data, assuming first byte corresponds to position in payload.

Applies key to length bytes of data, assuming first byte corresponds to position in payload.

Value Params
data

bytes to which key is applied

length

number of bytes to which key is applied

position

offset into payload to which first byte of data corresponds

Returns

modified data

def value: Int

Gets key value.

Gets key value.

Concrete methods

def apply(data: Array[Byte]): Array[Byte]

Applies key to supplied data.

Applies key to supplied data.

Value Params
data

bytes to which key is applied

Returns

modified data

Note

Equivalent to: apply(data, data.length, 0)