marshalBinaryKeySpec method

Uint8List marshalBinaryKeySpec(
  1. KeySpec keySpec
)

Implementation

Uint8List marshalBinaryKeySpec(KeySpec keySpec) {
  List<int> forConcat = [];

  forConcat.addAll(bytesMarshalBinary(getKeyHash(keySpec.keyHash), 1));
  if (keySpec.delegate != null) {
    forConcat.addAll(stringMarshalBinary(keySpec.delegate.toString(), 2));
  }

  return forConcat.asUint8List();
}