Package com.google.protobuf
Class ByteString.ArraysByteArrayCopier
java.lang.Object
com.google.protobuf.ByteString.ArraysByteArrayCopier
- All Implemented Interfaces:
ByteString.ByteArrayCopier
- Enclosing class:
ByteString
private static final class ByteString.ArraysByteArrayCopier
extends Object
implements ByteString.ByteArrayCopier
Implementation of
ByteArrayCopier
which uses Arrays.copyOfRange(T[], 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
-
ArraysByteArrayCopier
private ArraysByteArrayCopier()
-
-
Method Details
-
copyFrom
public byte[] copyFrom(byte[] bytes, int offset, int size) Description copied from interface:ByteString.ByteArrayCopier
Copies the specified range of the specified array into a new array- Specified by:
copyFrom
in interfaceByteString.ByteArrayCopier
-