# getPrefix method

String? getPrefix()

Gets the the prefix.

return The prefix. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    String? getPrefix() {
      Pointer<Char> pPrefix = nullptr;
      Pointer<Int> pPrefixSize = calloc.allocate(1);
      pPrefixSize[0] = -1;
      try {
        var err = biosealSDK.id3Bioseal_GetPrefix(_pHandle.value, pPrefix, pPrefixSize);
        if (err == BiosealError.objectDoesNotExist.value) {
          return null;
        }
        if (err == BiosealError.insufficientBuffer.value) {
          pPrefix = calloc.allocate(pPrefixSize.value);
          err = biosealSDK.id3Bioseal_GetPrefix(_pHandle.value, pPrefix, pPrefixSize);
          if (err != BiosealError.success.value) {
            throw BiosealException(err);
          }
        }
        final vPrefix = utf8.decode(Uint8List.fromList(pPrefix.cast<Uint8>().asTypedList(pPrefixSize.value)));
        return vPrefix;
      } finally {
        calloc.free(pPrefix);
        calloc.free(pPrefixSize);
      }
    }