io.deephaven.util.codec.MapCodec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-codec-builtin Show documentation
Show all versions of deephaven-codec-builtin Show documentation
Codec Builtin: Deephaven builtin codec implementations
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.util.codec;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.lang.ref.SoftReference;
import java.nio.BufferUnderflowException;
import java.nio.ByteBuffer;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* ObjectCodec implementation for Maps of type K to V.
*
* Each map is encoded as an integer length, followed by encoded pairs of key values.
*
* A null map is represented as an array of zero bytes.
*/
@SuppressWarnings("unused")
public abstract class MapCodec implements ObjectCodec