Language

Package: libbytesize @ 2.2

Synopsis

Tiny C library for working with arbitrary big sizes in bytes

Description

The goal of this project is to provide a tiny library that would facilitate the common operations with sizes in bytes. Many projects need to work with sizes in bytes (be it sizes of storage space, memory...) and all of them need to deal with the same issues like:

  • How to get a human-readable string for the given size?

  • How to store the given size so that no significant information is lost?

  • If we store the size in bytes, what if the given size gets over the MAXUINT64 value?

  • How to interpret sizes entered by users according to their locale and typing conventions?

  • How to deal with the decimal/binary units (MB versus MiB) ambiguity?

libbytesize offers a generally usable solution that could be used by every project that needs to deal with sizes in bytes. It is written in the C language with thin bindings for other languages.

Home page
https://github.com/storaged-project/libbytesize
Location
gnu/packages/c.scm (line: 146, column: 2)
License

Derivations

SystemTargetDerivationBuild status
x86_64-linux/gnu/store/3lvp4gnhbb0dnd00a3v37135qsr08hmw-libbytesize-2.2.drv
x86_64-linuxx86_64-w64-mingw32/gnu/store/jh2g8sradmhcf3zh07h3jqrz3bd0v3lp-libbytesize-2.2.drv
    x86_64-linuxriscv64-linux-gnu/gnu/store/id02yj0ysl6nr1fi0c48iri7n675py4s-libbytesize-2.2.drv
    x86_64-linuxpowerpc-linux-gnu/gnu/store/v5h93ljz8frkfs1l9qd20l6cksar57iv-libbytesize-2.2.drv
    x86_64-linuxpowerpc64le-linux-gnu/gnu/store/8dkaqhx3amlv5cg4nr4srzjqdxfjbxzl-libbytesize-2.2.drv
    x86_64-linuxmips64el-linux-gnu/gnu/store/063nmvbs6nq6jkqs5gjsn2qdrbqkrnqm-libbytesize-2.2.drv
    x86_64-linuxi686-w64-mingw32/gnu/store/31wynlxblpcn4mn22bqlzc9djg2b5z7q-libbytesize-2.2.drv
      x86_64-linuxi586-pc-gnu/gnu/store/vzhkk1j03hn5yb0jv0zivv4hsi44l113-libbytesize-2.2.drv
      x86_64-linuxarm-linux-gnueabihf/gnu/store/68nbkqj4v626zxrw255rxr685v4ypsk0-libbytesize-2.2.drv
      x86_64-linuxaarch64-linux-gnu/gnu/store/z2m69wsh32g1p49xq72qm1irq6ywn8ld-libbytesize-2.2.drv
      riscv64-linux/gnu/store/k6aj8sybg70rpal0dac76cw6mz0cll74-libbytesize-2.2.drv
        powerpc-linux/gnu/store/lzizrd4r66qr620nyjbrzddwfl2j9xwr-libbytesize-2.2.drv
          powerpc64le-linux/gnu/store/arrlb0ns40irmlplr5a5nrm9ksq0dsxn-libbytesize-2.2.drv
          mips64el-linux/gnu/store/xi7jhzwcwycqlvbhf0552j72k41blrnd-libbytesize-2.2.drv
            i686-linux/gnu/store/30pjhqxhhiifn3smbp5rsl6rv153aawa-libbytesize-2.2.drv
            i586-gnu/gnu/store/xcgivnvxdkzqshw7kadd61jvq6f0gxnb-libbytesize-2.2.drv
            armhf-linux/gnu/store/jk6hw9r8hl26fqph1zfxyg8b8xzrkwiz-libbytesize-2.2.drv
            aarch64-linux/gnu/store/1pdaqzfa1266jafw488yidcccpz0wrla-libbytesize-2.2.drv

            Lint warnings

            LinterMessageLocation
            input-labels

            Identify input labels that do not match package names

            label 'gettext' does not match package name 'gettext-minimal'