搜尋套件、儲存庫與 APP 分類

套件詳情v1.1.1

fixnum

用於 32 位和 64 位有符號固定寬度整數的程式庫,可在原生和 JS 執行環境之間保持一致的行為。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1160萬
喜歡數
69
Pub 分數
150

安裝套件

flutter pub add fixnum

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

fixnum 套件提供 32 位與 64 位有符號固定寬度整數類型,確保在 Dart 的原生與 JavaScript 執行環境中行為一致。它解決了不同平台之間整數處理的差異,特別是在網路環境中 JavaScript 使用浮點數來表示整數的情況。此套件非常適合需要在任何執行環境中都能實現可預測運算與位元運算之應用程式。

適用情境

  • 跨平台整數一致性
  • Web 和原生整數同步
  • 加密操作
  • 網路協定實作
  • 二進位資料處理
  • 底層系統程式設計

主要特色

  • 修復了32位和64位整數類型
  • 一致的溢出行為
  • 位運算支援
  • JavaScript 運行時相容性
  • 無外部依賴
  • 最小性能開銷

適合對象

  • 針對多平台的開發者
  • 需要精確整數運算的應用程式
  • Dart 中的系統程式設計
  • 與二進制協定的互操作性
  • 需要確定性整數行為的專案

使用建議

  • 基本整數用例不需要
  • 可能會為簡單操作引入輕微開銷
  • 需要顯式匯入固定寬度類型
  • 僅限有符號整數
  • 不適合任意精度算術

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

所屬分類

原始碼儲存庫

使用此套件的專案