Class LengthPrefixSerializer

java.lang.Object
org.sonarsource.analyzer.commons.LengthPrefixSerializer

public class LengthPrefixSerializer extends Object
A utility class to de/serialize a List<byte[]> and Map<String, byte[]> from/to byte[]. Simple length-prefixed serialization is used without any integrity checks. Lengths are saved as int. Thus, the maximum size of an entry is Integer.MAX_VALUE.