code: public void writeNullableByteArray( byte[] value )
      {
          if (value == null)
              write(NULL_VALUE);
          else
          {
              write(NOT_NULL_VALUE);
              writeInt(value.length);
              write(value);
          }
      }
docs: Write a nullable byte array to the stream