# getDescription method

String getDescription()

Gets the the document description.

return The document description. throws DocumentException An error has occurred during Document Library execution.

## Implementation

    String getDescription() {
      Pointer<Char> pDescription = nullptr;
      Pointer<Int> pDescriptionSize = calloc.allocate(1);
      pDescriptionSize[0] = -1;
      try {
        var err = documentSDK.id3DocumentInfo_GetDescription(_pHandle.value, pDescription, pDescriptionSize);
        if (err == DocumentError.insufficientBuffer.value) {
          pDescription = calloc.allocate(pDescriptionSize.value);
          err = documentSDK.id3DocumentInfo_GetDescription(_pHandle.value, pDescription, pDescriptionSize);
          if (err != DocumentError.success.value) {
            throw DocumentException(err);
          }
        }
        final vDescription = utf8.decode(Uint8List.fromList(pDescription.cast<Uint8>().asTypedList(pDescriptionSize.value)));
        return vDescription;
      } finally {
        calloc.free(pDescription);
        calloc.free(pDescriptionSize);
      }
    }