Package com.google.protobuf
Class ByteString.SystemByteArrayCopier
java.lang.Object
com.google.protobuf.ByteString.SystemByteArrayCopier
- All Implemented Interfaces:
ByteString.ByteArrayCopier
- Enclosing class:
- ByteString
private static final class ByteString.SystemByteArrayCopier
extends Object
implements ByteString.ByteArrayCopier
Implementation of
ByteArrayCopier which uses System.arraycopy(java.lang.Object, int, java.lang.Object, int, int).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]copyFrom(byte[] bytes, int offset, int size) Copies the specified range of the specified array into a new array
-
Constructor Details
-
SystemByteArrayCopier
private SystemByteArrayCopier()
-
-
Method Details
-
copyFrom
public byte[] copyFrom(byte[] bytes, int offset, int size) Description copied from interface:ByteString.ByteArrayCopierCopies the specified range of the specified array into a new array- Specified by:
copyFromin interfaceByteString.ByteArrayCopier
-