MaskingKey

scamper.http.websocket.MaskingKey
See theMaskingKey companion object
trait MaskingKey

Defines masking key for payload data.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

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 parameters

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

Attributes

Returns

modified data

def value: Int

Gets key value.

Gets key value.

Attributes

Concrete methods

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

Applies key to supplied data.

Applies key to supplied data.

Value parameters

data

bytes to which key is applied

Attributes

Returns

modified data

Note

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