lib/mongo/crypt/binary.rb
def to_bytes
        data = Binding.mongocrypt_binary_data(@bin)
        if data == FFI::Pointer::NULL
          return []
        end

        len = Binding.mongocrypt_binary_len(@bin)
        data.get_array_of_uint8(0, len)
      end
# Returns the data stored as a byte array
#
# @return [ Array<Int> ] Byte array stored in mongocrypt_binary_t
Returns the data stored as a byte array
Returns the data stored as a byte array
def to_bytes
        data = Binding.mongocrypt_binary_data(@bin)
        if data == FFI::Pointer::NULL
          return []
        end
        len = Binding.mongocrypt_binary_len(@bin)
        data.get_array_of_uint8(0, len)
      end
def to_bytes data = Binding . mongocrypt_binary_data ( @bin ) if data == FFI :: Pointer :: NULL return [ ] end len = Binding . mongocrypt_binary_len ( @bin ) data . get_array_of_uint8 ( 0 , len ) end
Returns the data stored as a byte array
Returns the data stored as a byte array
Byte array stored in mongocrypt_binary_t
Byte array stored in mongocrypt_binary_t
 Array<Int> 