1. 18 Apr, 2014 1 commit
    • Damien George's avatar
      py: Add typecode to buffer protocol. · 57a4b4f1
      Damien George authored
      When querying an object that supports the buffer protocol, that object
      must now return a typecode (as per binary.[ch]).  This does not have to
      be honoured by the caller, but can be useful for determining element
  2. 11 Apr, 2014 2 commits
  3. 10 Apr, 2014 2 commits
    • Damien George's avatar
    • Paul Sokolovsky's avatar
      py: Start implementing "struct" module. · e9db8404
      Paul Sokolovsky authored
      Only calcsize() and unpack() functions provided so far, for little-endian
      byte order. Format strings don't support repition spec (like "2b3i").
      Unfortunately, dealing with all the various binary type sizes and alignments
      will lead to quite a bloated "binary" helper functions  - if optimizing for
      speed. Need to think if using dynamic parametrized algos makes more sense.