Package org.yamcs.tctm.ccsds
Class Randomizer
java.lang.Object
org.yamcs.tctm.ccsds.Randomizer
CCSDS randomizer as per CCSDS 131.0-B-3(TM) and CCSDS 231.0-B-3 (TC)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
randomizeTc
(byte[] buf) Randomize the buffer according to CCSDS 231.0-B-3 pseudo-randomizerstatic void
randomizeTc
(byte[] buf, int offset, int length) Randomize the buffer starting at offset for length bytes according to CCSDS 231.0-B-3 pseudo-randomizerstatic void
randomizeTm
(byte[] buf) Randomize the buffer according to CCSDS 131.0-B-3 pseudo-randomizerstatic void
randomizeTm
(byte[] buf, int offset, int length)
-
Constructor Details
-
Randomizer
public Randomizer()
-
-
Method Details
-
randomizeTm
public static void randomizeTm(byte[] buf) Randomize the buffer according to CCSDS 131.0-B-3 pseudo-randomizer- Parameters:
buf
-
-
randomizeTm
public static void randomizeTm(byte[] buf, int offset, int length) -
randomizeTc
public static void randomizeTc(byte[] buf) Randomize the buffer according to CCSDS 231.0-B-3 pseudo-randomizer -
randomizeTc
public static void randomizeTc(byte[] buf, int offset, int length) Randomize the buffer starting at offset for length bytes according to CCSDS 231.0-B-3 pseudo-randomizer
-