fromBytesDecoded method

DummyCastle fromBytesDecoded(
  1. List<int> plainText
)

Inserts unencoded raw byte data to work on it.

param plainText - unencoded plain byte data.

return this object

Implementation

DummyCastle fromBytesDecoded(List<int> plainText) {
  if ((plainText == null) || plainText.length == 0) {
    exception = new Exception("Empty or null argument");
    error = true;
    return this;
  }
  try {
    resultBytes = plainText;
  } on Exception catch (e) {
    setUpError(e);
  }
  return this;
}