---
title: BioConvertLocation
description: "转换对象位置描述接口。"
url: https://www.hikunpeng.com/document/detail/zh/boostsds/BoostIO/kunpengboostIO_027.html
sourcePath: /source/zh/boostsds/BoostIO/kunpengboostIO_027.html
indexId: 2b8875d19d9ca1269292ebfc08399ce524ba02e36679eb7a68eb5ed7a331956d51
---
# BioConvertLocation

#### 函数定义

转换对象位置描述接口。


#### 实现方法

CResult BioConvertLocation(ObjLocation location, ObjLocationDetail *detailLoc)


#### 参数说明


**表1 参数说明**

| 参数名 | 数据类型 | 参数类型 | 描述 |
| --- | --- | --- | --- |
| location | ObjLocation | 入参 | 原始对象位置。 |
| detailLoc | ObjLocationDetail\* | 出参 | 对象位置详细描述的结构参数解释参见表2。 |


**表2 详细参数说明**

| 参数 | 结构体字段 | 说明 |
| --- | --- | --- |
| ObjLocationDetail | hostMaster | 主副本的主机名数组。 |
| ObjLocationDetail | hostSlave | 从副本的主机名数组。 |
| ObjLocationDetail | portMaster | 主副本主机端口。 |
| ObjLocationDetail | portSlave | 从副本主机端口。 |


#### 返回值


**表3 返回值说明**

| 返回值 | 描述 |
| --- | --- |
| RET\_CACHE\_OK | 操作成功。 |
| RET\_CACHE\_EPERM | 传入参数错误。 |
| RET\_CACHE\_NOT\_READY | BoostIO服务未就绪。 |
| RET\_CACHE\_ERROR | 操作失败。 |
