openharmony 鸿蒙 capi-rdb-oh-vobject

2026-08-25 浏览 (1)

OH_VObject

typedef struct {...} OH_VObject

Overview

Defines a struct for allowed data types.

Since: 10

Related module: RDB

Header file: oh_value_object.h

Summary

Member Variables

NameDescription
int64_t idUnique identifier of the OH_VObject struct.

Member Functions

NameDescription
int (*putInt64)(OH_VObject *valueObject, int64_t *value, uint32_t count)Converts a single parameter or an array of the int64 type into a value of the OH_VObject type.
int (*putDouble)(OH_VObject *valueObject, double *value, uint32_t count)Converts a single parameter or an array of the double type into a value of the OH_VObject type.
int (*putText)(OH_VObject *valueObject, const char *value)Converts a character array of the char * type to a value of the OH_VObject type.
int (*putTexts)(OH_VObject *valueObject, const char **value, uint32_t count)Converts a string array of the char * type to a value of the OH_VObject type.
int (*destroy)(OH_VObject *valueObject)Destroys an OH_VObject object and reclaims the memory occupied.

Member Function Description

putInt64()

int (*putInt64)(OH_VObject *valueObject, int64_t *value, uint32_t count)

Description

Converts a single parameter or an array of the int64 type into a value of the OH_VObject type.

Since: 10

Parameters

NameDescription
OH_VObject *valueObjectPointer to the OH_VObject instance.
int64_t *valuePointer to the data to covert.
uint32_t countIf value points to a single parameter, count is 1. If value points to an array, count specifies the length of the array.

Returns

TypeDescription
intReturns RDB_OK if the operation is successful; returns an error code otherwise.

putDouble()

int (*putDouble)(OH_VObject *valueObject, double *value, uint32_t count)

Description

Converts a single parameter or an array of the double type into a value of the OH_VObject type.

Since: 10

Parameters

NameDescription
OH_VObject *valueObjectPointer to the OH_VObject instance.
double *valuePointer to the data to covert.
uint32_t countIf value points to a single parameter, count is 1. If value points to an array, count specifies the length of the array.

Returns

TypeDescription
intReturns RDB_OK if the operation is successful; returns an error code otherwise.

putText()

int (*putText)(OH_VObject *valueObject, const char *value)

Description

Converts a character array of the char * type to a value of the OH_VObject type.

Since: 10

Parameters

NameDescription
OH_VObject *valueObjectPointer to the OH_VObject instance.
const char *valuePointer to the character array to convert.

Returns

TypeDescription
intReturns RDB_OK if the operation is successful; returns an error code otherwise.

putTexts()

int (*putTexts)(OH_VObject *valueObject, const char **value, uint32_t count)

Description

Converts a string array of the char * type to a value of the OH_VObject type.

Since: 10

Parameters

NameDescription
OH_VObject *valueObjectPointer to the OH_VObject instance.
const char **valueDouble pointer to the string array to convert.
uint32_t countLength of the string array to convert.

Returns

TypeDescription
intReturns RDB_OK if the operation is successful; returns an error code otherwise.

destroy()

int (*destroy)(OH_VObject *valueObject)

Description

Destroys an OH_VObject object and reclaims the memory occupied.

Since: 10

Parameters

NameDescription
OH_VObject *valueObjectPointer to the OH_VObject instance.

Returns

TypeDescription
intReturns RDB_OK if the operation is successful; returns an error code otherwise.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apis-distributedKVStore-sys

openharmony 鸿蒙 capi-oh-preferences-h

openharmony 鸿蒙 capi-udmf-oh-udshyperlink

openharmony 鸿蒙 js-apis-data-dataSharePredicates

openharmony 鸿蒙 capi-udmf-oh-udsappitem

openharmony 鸿蒙 capi-rdb-oh-data-vbuckets

openharmony 鸿蒙 capi-rdb-oh-predicates

openharmony 鸿蒙 capi-rdb-oh-data-value

openharmony 鸿蒙 capi-preferences-oh-preferencespair

openharmony 鸿蒙 errorcode-datashare

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/xSNRQy9r