.append(message.length())
.append(PacketFramer.DELIMITER).append(message);
}
}
}
<BUG>return result.toString();
}</BUG>
public static List<Packet> decodePacketsFrame(final ByteBuf buffer) throws IOException {
List<Packet> packets = new LinkedList<Packet>();
int sequenceNumber = 0;

.append(message.length())
.append(PacketFramer.DELIMITER).append(message);
}
}
}
String frame = result.toString();
byte[] frameBytes = frame.getBytes(CharsetUtil.UTF_8);
ByteBuf frameByteBuf = PooledByteBufAllocator.DEFAULT.buffer(frameBytes.length, frameBytes.length);
frameByteBuf.writeBytes(frameBytes);
return frameByteBuf;
}
public static List<Packet> decodePacketsFrame(final ByteBuf buffer) throws IOException {
List<Packet> packets = new LinkedList<Packet>();
int sequenceNumber = 0;
