[xoreos-git] [xoreos/xoreos-tools] c58594: COMMON: Remove MemoryWriteStreamDynamic::pos()

GitHub noreply at github.com
Mon Nov 28 02:25:59 CET 2016


  Branch: refs/heads/master
  Home:   https://github.com/xoreos/xoreos-tools
  Commit: c585942b76c8f18faa6fc7501d74706343351607
      https://github.com/xoreos/xoreos-tools/commit/c585942b76c8f18faa6fc7501d74706343351607
  Author: Sven Hesse <drmccoy at drmccoy.de>
  Date:   2016-11-28 (Mon, 28 Nov 2016)

  Changed paths:
    M src/common/memwritestream.cpp
    M src/common/memwritestream.h

  Log Message:
  -----------
  COMMON: Remove MemoryWriteStreamDynamic::pos()

It doesn't need to exist. The position and size are always the same;
they're the number of bytes written to. The capacity denotes the size
of the memory block.


  Commit: 3de1f6612895207876230fb2e6cf59b0c4548032
      https://github.com/xoreos/xoreos-tools/commit/3de1f6612895207876230fb2e6cf59b0c4548032
  Author: Sven Hesse <drmccoy at drmccoy.de>
  Date:   2016-11-28 (Mon, 28 Nov 2016)

  Changed paths:
    M src/common/memwritestream.h

  Log Message:
  -----------
  COMMON: Document MemoryWriteStream::size() and pos()

size() returns the number of bytes in the memory block in total, while
pos() is the current writing position.


  Commit: 63c2c118282c04d0f05261f82690de871c4994d6
      https://github.com/xoreos/xoreos-tools/commit/63c2c118282c04d0f05261f82690de871c4994d6
  Author: Sven Hesse <drmccoy at drmccoy.de>
  Date:   2016-11-28 (Mon, 28 Nov 2016)

  Changed paths:
    M src/common/memwritestream.h

  Log Message:
  -----------
  COMMON: Document MemoryWriteStreamDynamic::size()

As this stream grows dynamically, size() returns the number of bytes
written to in total.


  Commit: 74bd31e15295d18dc964ca8bba3b6d52e43c43bc
      https://github.com/xoreos/xoreos-tools/commit/74bd31e15295d18dc964ca8bba3b6d52e43c43bc
  Author: Sven Hesse <drmccoy at drmccoy.de>
  Date:   2016-11-28 (Mon, 28 Nov 2016)

  Changed paths:
    M src/common/writefile.cpp
    M src/common/writefile.h

  Log Message:
  -----------
  COMMON: Add WriteFile::size()

Returns the number of bytes written to the current file in total.


  Commit: 9d771a598ea37ba661966f8fdb7fecd6b371a0a6
      https://github.com/xoreos/xoreos-tools/commit/9d771a598ea37ba661966f8fdb7fecd6b371a0a6
  Author: Sven Hesse <drmccoy at drmccoy.de>
  Date:   2016-11-28 (Mon, 28 Nov 2016)

  Changed paths:
    M src/aurora/herffile.cpp

  Log Message:
  -----------
  AURORA: Store the erf.dict name inside the HERF resource list


  Commit: 5ce5b17d8d7120e7516f2e40be2a47c0f50565ae
      https://github.com/xoreos/xoreos-tools/commit/5ce5b17d8d7120e7516f2e40be2a47c0f50565ae
  Author: Sven Hesse <drmccoy at drmccoy.de>
  Date:   2016-11-28 (Mon, 28 Nov 2016)

  Changed paths:
    M src/aurora/ndsrom.cpp

  Log Message:
  -----------
  AURORA: Fix typo in an exception thrown in NDSFile


  Commit: af34ce8b01eca5359228482dbb1c6db9d639d351
      https://github.com/xoreos/xoreos-tools/commit/af34ce8b01eca5359228482dbb1c6db9d639d351
  Author: Sven Hesse <drmccoy at drmccoy.de>
  Date:   2016-11-28 (Mon, 28 Nov 2016)

  Changed paths:
    M src/aurora/smallfile.cpp
    M src/aurora/smallfile.h

  Log Message:
  -----------
  AURORA: Implement Nintendo DS LZSS (SMALL files) compression

Both the method 0x00 (uncompressed, with a 4 byte header) and the
method 0x10 (LZSS) are supported.

Code loosely based on DSDecmp by Barubary, released under the terms of
the MIT license.
See <https://github.com/gravgun/dsdecmp/blob/master/CSharp/DSDecmp/Formats/Nitro/LZ10.cs#L249>
and <https://code.google.com/p/dsdecmp/>.


Compare: https://github.com/xoreos/xoreos-tools/compare/1e7899777172...af34ce8b01ec


More information about the xoreos-git mailing list