OpaqueBytesSubSequence - corda

corda / net.corda.core.utilities / OpaqueBytesSubSequence

# OpaqueBytesSubSequence

`class OpaqueBytesSubSequence : ByteSequence`

Class is public for serialization purposes.

### Constructors

#### <init> | Class is public for serialization purposes. `OpaqueBytesSubSequence(bytes: ByteArray, offset: Int, size: Int)`

### Properties

#### bytes | The underlying bytes. Some implementations may choose to make a copy of the underlying ByteArray for security reasons. For example, OpaqueBytes. `val bytes: ByteArray`

### Extension Functions

#### deserialize | Convenience extension method for deserializing a ByteSequence, utilising the defaults. `fun <T : Any> ByteSequence.deserialize(serializationFactory: SerializationFactory = SerializationFactory.defaultFactory, context: SerializationContext = serializationFactory.defaultContext): T`
#### deserializeWithCompatibleContext | Additionally returns SerializationContext which was used for encoding. It might be helpful to know SerializationContext to use the same encoding in the reply. `fun <T : Any> ByteSequence.deserializeWithCompatibleContext(serializationFactory: SerializationFactory = SerializationFactory.defaultFactory, context: SerializationContext = serializationFactory.defaultContext): ObjectWithCompatibleContext<T>`