All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qq.weixin.mp.aes.ByteGroup Maven / Gradle / Ivy

Go to download

The weixin-popular is a JAVA SDK for weixin. Weixin web url is https://mp.weixin.qq.com.

There is a newer version: 2.8.43
Show newest version
package com.qq.weixin.mp.aes;

import java.util.ArrayList;

class ByteGroup {
	ArrayList byteContainer = new ArrayList();

	public byte[] toBytes() {
		byte[] bytes = new byte[byteContainer.size()];
		for (int i = 0; i < byteContainer.size(); i++) {
			bytes[i] = byteContainer.get(i);
		}
		return bytes;
	}

	public ByteGroup addBytes(byte[] bytes) {
		for (byte b : bytes) {
			byteContainer.add(b);
		}
		return this;
	}

	public int size() {
		return byteContainer.size();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy