setAttrib method

  1. @override
SCardResult setAttrib(
  1. int hCard,
  2. int dwAttrId,
  3. List<int> pbAttr
)
override

Implementation

@override
SCardResult setAttrib(int hCard, int dwAttrId, List<int> pbAttr) {
  final pbAttrBuffer = _allocateNativeBytes(pbAttr);

  try {
    return SCardResult(_winscard.SCardSetAttrib(hCard, dwAttrId, pbAttrBuffer, pbAttr.length));
  }
  finally {
    calloc.free(pbAttrBuffer);
  }
}