energy/cef/cef-string-multi-map.go
2022-12-06 12:04:00 +08:00

72 lines
2.2 KiB
Go

//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under GNU General Public License v3.0
//
//----------------------------------------
package cef
import (
. "github.com/energye/energy/common"
"github.com/energye/golcl/lcl/api"
"unsafe"
)
type ICefStringMultiMap struct {
instance uintptr
ptr unsafe.Pointer
}
//header map
func (m *ICefStringMultiMap) GetSize() int {
return cefHeaderMap_GetSize(m.instance)
}
func (m *ICefStringMultiMap) FindCount(key string) int {
return cefHeaderMap_FindCount(m.instance, key)
}
func (m *ICefStringMultiMap) GetEnumerate(key string, valueIndex int) string {
return api.GoStr(cefHeaderMap_GetEnumerate(m.instance, key, valueIndex))
}
func (m *ICefStringMultiMap) GetKey(index int) string {
return api.GoStr(cefHeaderMap_GetKey(m.instance, index))
}
func (m *ICefStringMultiMap) GetValue(index int) string {
return api.GoStr(cefHeaderMap_GetValue(m.instance, index))
}
func (m *ICefStringMultiMap) Append(key, value string) bool {
return api.GoBool(cefHeaderMap_Append(m.instance, key, value))
}
func (m *ICefStringMultiMap) Clear() {
cefHeaderMap_Clear(m.instance)
}
func cefHeaderMap_GetSize(instance uintptr) int {
r1, _, _ := Proc(internale_cefHeaderMap_GetSize).Call(instance)
return int(r1)
}
func cefHeaderMap_FindCount(instance uintptr, key string) int {
r1, _, _ := Proc(internale_cefHeaderMap_FindCount).Call(instance, api.PascalStr(key))
return int(r1)
}
func cefHeaderMap_GetEnumerate(instance uintptr, key string, valueIndex int) uintptr {
r1, _, _ := Proc(internale_cefHeaderMap_GetEnumerate).Call(instance, api.PascalStr(key), uintptr(valueIndex))
return r1
}
func cefHeaderMap_GetKey(instance uintptr, index int) uintptr {
r1, _, _ := Proc(internale_cefHeaderMap_GetKey).Call(instance, uintptr(index))
return r1
}
func cefHeaderMap_GetValue(instance uintptr, index int) uintptr {
r1, _, _ := Proc(internale_cefHeaderMap_GetValue).Call(instance, uintptr(index))
return r1
}
func cefHeaderMap_Append(instance uintptr, key, value string) uintptr {
r1, _, _ := Proc(internale_cefHeaderMap_Append).Call(instance, api.PascalStr(key), api.PascalStr(value))
return r1
}
func cefHeaderMap_Clear(instance uintptr) {
Proc(internale_cefHeaderMap_Clear).Call(instance)
}