printProtocolPtr function

dynamic printProtocolPtr(
  1. Pointer<Void> ptrData,
  2. int length, {
  3. String prefix = "SEND",
  4. int protocolStart = 2,
  5. int characteristic = 0,
})

Implementation

printProtocolPtr(Pointer<Void> ptrData, int length, {String prefix = "SEND", int protocolStart = 2, int characteristic = 0}) {
  List<int> lstData = [];

  Pointer<Int8> ptrByte = ptrData as Pointer<Int8>;
  for(int i = 0; i < length; i ++) {
    lstData.add(ptrByte[i]);
  }

  printProtocol(lstData, length, prefix: prefix, protocolStart: protocolStart, characteristic: characteristic);
}