My fault. I read the "l" (L) in the following line as "1" (one). >> 225 byte asn1Bytes[] = new byte[6 + j + l];
Xuelei On 5/2/2014 3:10 AM, Sean Mullan wrote: >> 225 byte asn1Bytes[] = new byte[6 + j + l]; >> By the line, the length of the target byte array is known. I might >> prefer to allocate the exactly size for byte array here. Otherwise, the >> 2nd System.arraycopy() would need re-allocate the array for more space. > > I'm not quite following you here. System.arrayCopy doesn't resize the > array, it will throw an exception if the dest array is not big enough. > Can you clarify what you mean or show me the corrected code? > > Thanks,
