搜索插件、代码仓与 APP 分类

插件详情v1.1.1

fixnum

用于 32 位和 64 位有符号固定宽度整数的库,可在原生和 JS 运行时之间保持一致的行为。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1160万
喜欢数
69
Pub 分数
150

安装插件

flutter pub add fixnum

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

fixnum 包提供 32 位和 64 位有符号固定宽度整数类型,确保在 Dart 的原生和 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.

所属分类

源码仓库

使用此插件的项目