Top Description Methods
jdk.vm.ci.meta

public Interface SerializableConstant

extends Constant
Known Direct Implementers
jdk.vm.ci.meta.PrimitiveConstant
Imports
java.nio.ByteBuffer

Represents a compile-time constant that can be converted to a byte array.

Method Summary

Modifier and TypeMethod and Description
public int
getSerializedSize()

Return the size in bytes of the serialized representation of this constant.

public void
serialize(ByteBuffer buffer)

Serialize the constant into the ByteBuffer.

Inherited from jdk.vm.ci.meta.Constant:
isDefaultForKindtoValueString

Method Detail

getSerializedSizeback to summary
public int getSerializedSize()

Return the size in bytes of the serialized representation of this constant.

serializeback to summary
public void serialize(ByteBuffer buffer)

Serialize the constant into the ByteBuffer. There must be at least getSerializedSize() bytes available capacity in the buffer.