@InterfaceAudience.Private public class ByteStringer extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
private static boolean |
USE_ZEROCOPYBYTESTRING
Flag set at class loading time.
|
Modifier | Constructor and Description |
---|---|
private |
ByteStringer() |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.ByteString |
wrap(byte[] array)
Wraps a byte array in a
ByteString without copying it. |
static com.google.protobuf.ByteString |
wrap(byte[] array,
int offset,
int length)
Wraps a subset of a byte array in a
ByteString without copying it. |
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.