readWithoutEncryption method

Future<FeliCaReadWithoutEncryptionResponse> readWithoutEncryption({
  1. required List<Uint8List> serviceCodeList,
  2. required List<Uint8List> blockList,
})

Reads blocks from services that need no authentication.

blockList entries are block list elements, not plain block numbers: the first byte carries the access mode and the service index, so build them per the FeliCa specification rather than passing bare indices.

Implementation

Future<FeliCaReadWithoutEncryptionResponse> readWithoutEncryption({
  required List<Uint8List> serviceCodeList,
  required List<Uint8List> blockList,
}) async {
  final response = await iosApi.felicaReadWithoutEncryption(_handle, serviceCodeList, blockList);
  return FeliCaReadWithoutEncryptionResponse(
    statusFlag1: response.statusFlag1,
    statusFlag2: response.statusFlag2,
    blockData: response.blockData,
  );
}