ctf: BitBuffer improvements
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 2 Aug 2012 17:27:03 +0000 (13:27 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 7 Aug 2012 18:36:44 +0000 (14:36 -0400)
commit8b8e48edb3d6614c959470679c0eb3a3126dfa07
treea624226c722fe37c6863049f18ad34fc75df5e42
parentdd08a8935a9a5ee300989ec9ba35cab83a972303
ctf: BitBuffer improvements

Minor performance improvements. Simplified the API a bit:
Removed the 'index' parameter from the public API in read()
and put() methods. All reads/writes can be done from the
current position, and this position can be set with position().

Updated the tests accordingly.

Change-Id: I24b30f2a2e5d79be1b873795ebd4183b70551907
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/7076
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/io/BitBufferIntTest.java
org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/io/BitBufferTest.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/internal/ctf/core/event/io/BitBuffer.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/internal/ctf/core/trace/StreamInput.java
This page took 0.026019 seconds and 5 git commands to generate.