5package io.flutter.plugin.common;
7import androidx.annotation.Nullable;
8import java.nio.ByteBuffer;
29 private final boolean returnsDirectByteBufferFromDecoding;
32 this.returnsDirectByteBufferFromDecoding =
false;
44 private BinaryCodec(
boolean returnsDirectByteBufferFromDecoding) {
45 this.returnsDirectByteBufferFromDecoding = returnsDirectByteBufferFromDecoding;
57 }
else if (returnsDirectByteBufferFromDecoding) {
ByteBuffer decodeMessage(@Nullable ByteBuffer message)
static final BinaryCodec INSTANCE
ByteBuffer encodeMessage(@Nullable ByteBuffer message)
static final BinaryCodec INSTANCE_DIRECT