public class FixUtils extends Object
Modifier and Type | Method and Description |
---|---|
static long |
atoi(byte[] buf,
int offset) |
static List<Message> |
cloneMessages(List<Message> messages) |
static boolean |
contentEquals(byte[] buffer,
int offset,
byte[] buffer2,
int length) |
static ValuePtr |
escapeSpecialCharsJson(byte[] inputBuf,
int offset,
int length)
Escapes special JSON characters in the input ASCII string (e.g., quotes, backslashes, newlines, etc.).
|
static int |
findIndexOf(byte[] buffer,
int offset,
String str,
int length) |
public static ValuePtr escapeSpecialCharsJson(byte[] inputBuf, int offset, int length)
inputBuf
- the input ASCII byte array.offset
- the starting offset of the value in the byte array.length
- the length of the value in the byte array.ValuePtr
pointing to the escaped string,
or null if the input is null or length is non-positive.public static int findIndexOf(byte[] buffer, int offset, String str, int length)
public static boolean contentEquals(byte[] buffer, int offset, byte[] buffer2, int length)
public static long atoi(byte[] buf, int offset)
Copyright © 2005–2025 Onix Solutions. All rights reserved.