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 java.lang.Object implements ByteString.ByteArrayCopier
Implementation ofByteArrayCopier
which usesArrays.copyOfRange(T[], int, int)
.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ArraysByteArrayCopier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
copyFrom(byte[] bytes, int offset, int size)
Copies the specified range of the specified array into a new array
-
-
-
Method Detail
-
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
-
-