aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-02-01 09:14:28 -0800
committerAnton Tananaev <anton@traccar.org>2024-02-01 09:14:28 -0800
commit1e0cc806b7386680492cb3b6b266bb4f958b2f1e (patch)
treee72a69d9a04a6d7fa07de669e2cd74e8616192f7 /src/main/java/org/traccar/helper
parent7d82b0f88197f8ebfcef949abec4ddca07d9ed87 (diff)
downloadtrackermap-server-1e0cc806b7386680492cb3b6b266bb4f958b2f1e.tar.gz
trackermap-server-1e0cc806b7386680492cb3b6b266bb4f958b2f1e.tar.bz2
trackermap-server-1e0cc806b7386680492cb3b6b266bb4f958b2f1e.zip
Decode Eview Pet configuration
Diffstat (limited to 'src/main/java/org/traccar/helper')
-rw-r--r--src/main/java/org/traccar/helper/BufferUtil.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/helper/BufferUtil.java b/src/main/java/org/traccar/helper/BufferUtil.java
index 12c31ba9d..b453c437f 100644
--- a/src/main/java/org/traccar/helper/BufferUtil.java
+++ b/src/main/java/org/traccar/helper/BufferUtil.java
@@ -83,4 +83,8 @@ public final class BufferUtil {
return printable;
}
+ public static String readString(ByteBuf buf, int length) {
+ return buf.readCharSequence(length, StandardCharsets.US_ASCII).toString();
+ }
+
}