Web lists-archives.com

Bug#864815: ITP: libbytesize -- library for common operations with sizes in bytes




Package: wnpp
Severity: wishlist
Owner: Martin Pitt <mpitt@xxxxxxxxxx>

* Package name    : libbytesize
  Version         : 0.10
  Upstream Author : Vratislav Podzimek <vpodzime@xxxxxxxxxx>
  URL             : https://github.com/rhinstaller/libbytesize
* License         : LGPL-2.1+
  Programming Lang: C
  Description     : Library for 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 vs. MiB) ambiguity?

   This library aims to be as much generally usable as possible, small, fast and
   be easily interfaced from other languages.

This is a build/binary dependency of the ITP'ed libblockdev [1] which in turn
is a new dependency of upcoming udisks [2].

If anyone else is interested, co-maintenance is highly welcome and appreciated!

Thanks,

Martin

[1] https://bugs.debian.org/862776
[2] https://github.com/storaged-project/udisks/pull/260

Attachment: signature.asc
Description: PGP signature