電腦科學領域,包裝庫(英語:wrapper library,也稱封裝庫)是一種函式庫,可以將其它函式庫已存在的介面翻譯成另一種相容介面。

包裝庫通常只是一小層代碼(即「墊片」),它之所以存在,是為了:

  • 改良設計存在缺陷或者過於複雜的介面
  • 溝通無法協同運作的代碼(例如數據格式不相容)
  • 跨語言、跨執行時系統互動

另見

Wikiwand in your browser!

Seamless Wikipedia browsing. On steroids.

Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.

Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.