@InterfaceAudience.Private public class ByteStringer extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
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. |
private static final org.slf4j.Logger LOG
private static boolean USE_ZEROCOPYBYTESTRING
private ByteStringer()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.