public static final class BytesTransformer.ResizeTransformer extends Object implements BytesTransformer
(byte)0.
If if the internal array will be grown, zero bytes will be added on the left, keeping the value the same.
| Modifier and Type | Class and Description |
|---|---|
static class |
BytesTransformer.ResizeTransformer.Mode |
BytesTransformer.BitSwitchTransformer, BytesTransformer.BitWiseOperatorTransformer, BytesTransformer.ConcatTransformer, BytesTransformer.CopyTransformer, BytesTransformer.MessageDigestTransformer, BytesTransformer.NegateTransformer, BytesTransformer.ResizeTransformer, BytesTransformer.ReverseTransformer, BytesTransformer.ShiftTransformer| 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
|
public byte[] transform(byte[] currentArray,
boolean inPlace)
BytesTransformertransform in interface BytesTransformercurrentArray - to preform the transformation oninPlace - perform the operations directly on the victim's byte array to omit copying of the internal arraypublic boolean supportInPlaceTransformation()
BytesTransformersupportInPlaceTransformation in interface BytesTransformerCopyright © 2017–2021. All rights reserved.