kimi
2021-02-18 0ac056bb5b4c567293482286c80a1b83a467cd33
1
2
3
4
5
6
7
8
9
10
11
12
13
package chat.util;
 
import io.netty.buffer.ByteBuf;
 
public class BytesSelfUtil {
 
    public static byte[]  getReadableBytes(ByteBuf ackPayload) {
        byte[] resBytes = new byte[ackPayload.readableBytes()];
        ackPayload.getBytes(0, resBytes);
        return resBytes;
    }    
 
}