微信后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
624 B

package com.ynxbd.wx.wxfactory.menu.bean;
import java.util.ArrayList;
public class ByteGroup {
ArrayList<Byte> byteContainer = new ArrayList<>();
public byte[] toBytes() {
byte[] bytes = new byte[this.byteContainer.size()];
for(int i = 0; i < this.byteContainer.size(); ++i) {
bytes[i] = this.byteContainer.get(i);
}
return bytes;
}
public void addBytes(byte[] bytes) {
for (byte b : bytes) {
this.byteContainer.add(b);
}
}
public int size() {
return this.byteContainer.size();
}
}