company logo

Binary :: assign - Assign binary data block

The function allows assigning data to a binary data block. When the binary data block already contains data, this will be overwritten completely.

Return value:  Binary data block handle ( odaba::Binary & )

Constant reference to a binary data block handle, which may contain binary data up to 2 GB.

Implementation overview

Implementation details

  1. Assign binary data block
    odaba::Binary & Binary  :: assign ( odaba::Binary &cBinary )

    The method assigns the binary data block passed in cBinary to the calling binary data block handle (by reference). If cBinaryis null (isNull()), the calling string will be set to null, too.

    • cBinary - Binary data block handle

      Constant reference to a binary data block handle, which may contain binary data up to 2 GB.

  2. to list
  3. Assign string data to data block
    odaba::Binary & Binary  :: assign ( odaba::String &sValue )

    The function allows converting string data into a binary data block by copying data passed in the string value sValue to the binary data block with the length of the string (lengthInBytes()). If sValue is null (isNull()), the calling string will be set to null, too.

    • sValue - String value
  4. to list