diff options
author | Anton Tananaev <anton@traccar.org> | 2024-02-01 09:14:28 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-02-01 09:14:28 -0800 |
commit | 1e0cc806b7386680492cb3b6b266bb4f958b2f1e (patch) | |
tree | e72a69d9a04a6d7fa07de669e2cd74e8616192f7 /src/main/java/org/traccar/helper | |
parent | 7d82b0f88197f8ebfcef949abec4ddca07d9ed87 (diff) | |
download | trackermap-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.java | 4 |
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(); + } + } |