public interface BytesTransformer
Bytes
Modifier and Type | Interface and Description |
---|---|
static class |
BytesTransformer.BitSwitchTransformer
Switches bits on specific position of an array
|
static class |
BytesTransformer.BitWiseOperatorTransformer
Simple transformer for bitwise operations on
Bytes instances |
static class |
BytesTransformer.ConcatTransformer
Simple transformer for bitwise operations on
Bytes instances |
static class |
BytesTransformer.CopyTransformer
Creates a new instance with a copy of the internal byte array and all other attributes.
|
static class |
BytesTransformer.MessageDigestTransformer
Converts to hash
|
static class |
BytesTransformer.NegateTransformer
Simple transformer for bitwise unary negation on
Bytes instances |
static class |
BytesTransformer.ResizeTransformer
Copies the specified array, truncating or padding with zeros (if necessary)
so the copy has the specified length.
|
static class |
BytesTransformer.ReverseTransformer
Reverses the internal byte array
|
static class |
BytesTransformer.ShiftTransformer
Simple transformer for bit shifting
Bytes instances |
Modifier and Type | Method and Description |
---|---|
boolean |
supportInPlaceTransformation()
If this transformer supports transformation without creation a new array
|
byte[] |
transform(byte[] currentArray,
boolean inPlace)
Transform given victim in place, overwriting its internal byte array
|
byte[] transform(byte[] currentArray, boolean inPlace)
currentArray
- to preform the transformation oninPlace
- perform the operations directly on the victim's byte array to omit copying of the internal arrayboolean supportInPlaceTransformation()
Copyright © 2017–2018. All rights reserved.