net.metanotion.io.data

## Class IdentityBytes

- java.lang.Object
- - net.metanotion.io.data.IdentityBytes

- All Implemented Interfaces:
    Serializer<byte[]>

      public class IdentityBytes
      extends Object
      implements Serializer<byte[]>

  Pass-through serializer for byte arrays.

  Returns byte arrays unchanged during serialization/deserialization. Useful for storing raw binary data without modification.

  Important: Performs direct reference copy, not deep copy. Modifications to returned array affect the original array.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IdentityBytes()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `construct(byte[] b)`
    `byte[]` | `getBytes(byte[] o)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### IdentityBytes

          public IdentityBytes()

  - ### Method Detail

    - #### construct

          public byte[] construct(byte[] b)

      Specified by:
        `construct` in interface `Serializer<byte[]>`
      Returns:
        b

    - #### getBytes

          public byte[] getBytes(byte[] o)

      Specified by:
        `getBytes` in interface `Serializer<byte[]>`
      Returns:
        byte[]