我试图复制一个字节数组 复制到一个属于第三方图书馆的类
Dim usr As New RSI_USER_RECORD
Dim ba(RSI_USER_RECORD.RSI_LEN_USER_REC - 1) As Byte
populate ba here
usr = ba how can I do this?
有可能吗?
以下是类别的定义(来自反省器)
Public Class RSI_USER_RECORD
Methods
Public Function Clone() As RSI_USER_RECORD
Return New RSI_USER_RECORD With { _
.pID = Me.pID.Clone, _
.pTemplateVector = Me.pTemplateVector.Clone, _
.authorityLevel = Me.authorityLevel, _
.rejectThreshold = Me.rejectThreshold, _
.timeZone = Me.timeZone _
}
End Function
Fields
Public authorityLevel As RSI_AUTHORITY_LEVEL = RSI_AUTHORITY_LEVEL.RSI_AUTHORITY_NONE
Public pID As RSI_ID = New RSI_ID
Public pTemplateVector As RSI_TEMPLATE = New RSI_TEMPLATE
Public rejectThreshold As UInt16 = 0
Public Const RSI_LEN_USER_REC As Integer ModOpt(IsConst) = &H10
Public timeZone As Byte = 0
End Class