@Internal public final class SliceProtobufUtil extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ByteString |
asByteString(Slice slice) |
static Slice |
asSlice(ByteString byteString) |
static <T> T |
parseFrom(Parser<T> parser,
Slice slice) |
static Slice |
toSlice(Message message) |
public static <T> T parseFrom(Parser<T> parser, Slice slice) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ByteString asByteString(Slice slice)
public static Slice asSlice(ByteString byteString)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.