diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-29 11:23:40 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-29 11:23:40 +1200 |
commit | 0de1d3e5ba4527bdef27b4e90f528300f5197c3e (patch) | |
tree | 27321847989d08386c4aeb1db7df361731cfc172 /src/org/traccar/helper/ChannelBufferTools.java | |
parent | 3591ef137ae12e5401fc148a637799949ec5c2a7 (diff) | |
download | trackermap-server-0de1d3e5ba4527bdef27b4e90f528300f5197c3e.tar.gz trackermap-server-0de1d3e5ba4527bdef27b4e90f528300f5197c3e.tar.bz2 trackermap-server-0de1d3e5ba4527bdef27b4e90f528300f5197c3e.zip |
Update Xexun frame decoder
Diffstat (limited to 'src/org/traccar/helper/ChannelBufferTools.java')
-rw-r--r-- | src/org/traccar/helper/ChannelBufferTools.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/helper/ChannelBufferTools.java b/src/org/traccar/helper/ChannelBufferTools.java index ef9384138..1ebe89666 100644 --- a/src/org/traccar/helper/ChannelBufferTools.java +++ b/src/org/traccar/helper/ChannelBufferTools.java @@ -24,7 +24,11 @@ import org.traccar.protocol.IntellitracFrameDecoder; * ChannelBuffer helper methods */ public class ChannelBufferTools { - + + public static Integer find(ChannelBuffer buf, int start, String subString) { + return find(buf, start, buf.readerIndex() + buf.readableBytes(), subString); + } + /** * Find string in network buffer */ |