Actually use our threadLocal. Do'h

This commit is contained in:
md_5 2013-06-02 14:33:47 +10:00
parent 18f5ed3102
commit aa1a871967

View File

@ -38,6 +38,7 @@ public class CipherBase
if ( heapIn.length < readableBytes )
{
heapIn = new byte[ readableBytes ];
heapInLocal.set( heapIn );
}
in.readBytes( heapIn, 0, readableBytes );
@ -46,6 +47,7 @@ public class CipherBase
if ( heapOut.length < outputSize )
{
heapOut = new byte[ outputSize ];
heapOutLocal.set( heapOut );
}
out.writeBytes( heapOut, 0, cipher.update( heapIn, 0, readableBytes, heapOut ) );
}