cjson

package module
v0.0.0-...-35cb65d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const LLGoPackage string = "link: $(pkg-config --libs libcjson libcjson_utils);"

Variables

This section is empty.

Functions

func Free

func Free(object unsafe.Pointer)

func GetErrorPtr

func GetErrorPtr() *int8

func Malloc

func Malloc(size uintptr) unsafe.Pointer

func Minify

func Minify(json *int8)

func Version

func Version() *int8

Types

type Bool

type Bool c.Int

func (Bool) CreateBool

func (p Bool) CreateBool() *CJSON

llgo:link Bool.CreateBool C.cJSON_CreateBool

type CJSON

type CJSON struct {
	Next        *CJSON
	Prev        *CJSON
	Child       *CJSON
	Type        c.Int
	Valuestring *int8
	Valueint    c.Int
	Valuedouble float64
	String      *int8
}

func CreateArray

func CreateArray() *CJSON

func CreateDoubleArray

func CreateDoubleArray(numbers *float64, count c.Int) *CJSON

func CreateFalse

func CreateFalse() *CJSON

func CreateFloatArray

func CreateFloatArray(numbers *float32, count c.Int) *CJSON

func CreateIntArray

func CreateIntArray(numbers *c.Int, count c.Int) *CJSON

func CreateNull

func CreateNull() *CJSON

func CreateNumber

func CreateNumber(num float64) *CJSON

func CreateObject

func CreateObject() *CJSON

func CreateRaw

func CreateRaw(raw *int8) *CJSON

func CreateString

func CreateString(string *int8) *CJSON

func CreateStringArray

func CreateStringArray(strings **int8, count c.Int) *CJSON

func CreateStringReference

func CreateStringReference(string *int8) *CJSON

func CreateTrue

func CreateTrue() *CJSON

func Parse

func Parse(value *int8) *CJSON

func ParseWithLength

func ParseWithLength(value *int8, buffer_length uintptr) *CJSON

func ParseWithLengthOpts

func ParseWithLengthOpts(value *int8, buffer_length uintptr, return_parse_end **int8, require_null_terminated Bool) *CJSON

func ParseWithOpts

func ParseWithOpts(value *int8, return_parse_end **int8, require_null_terminated Bool) *CJSON

func (*CJSON) AddArrayToObject

func (p *CJSON) AddArrayToObject(name *int8) *CJSON

llgo:link (*CJSON).AddArrayToObject C.cJSON_AddArrayToObject

func (*CJSON) AddBoolToObject

func (p *CJSON) AddBoolToObject(name *int8, boolean Bool) *CJSON

llgo:link (*CJSON).AddBoolToObject C.cJSON_AddBoolToObject

func (*CJSON) AddFalseToObject

func (p *CJSON) AddFalseToObject(name *int8) *CJSON

llgo:link (*CJSON).AddFalseToObject C.cJSON_AddFalseToObject

func (*CJSON) AddItemReferenceToArray

func (p *CJSON) AddItemReferenceToArray(item *CJSON) Bool

llgo:link (*CJSON).AddItemReferenceToArray C.cJSON_AddItemReferenceToArray

func (*CJSON) AddItemReferenceToObject

func (p *CJSON) AddItemReferenceToObject(string *int8, item *CJSON) Bool

llgo:link (*CJSON).AddItemReferenceToObject C.cJSON_AddItemReferenceToObject

func (*CJSON) AddItemToArray

func (p *CJSON) AddItemToArray(item *CJSON) Bool

llgo:link (*CJSON).AddItemToArray C.cJSON_AddItemToArray

func (*CJSON) AddItemToObject

func (p *CJSON) AddItemToObject(string *int8, item *CJSON) Bool

llgo:link (*CJSON).AddItemToObject C.cJSON_AddItemToObject

func (*CJSON) AddItemToObjectCS

func (p *CJSON) AddItemToObjectCS(string *int8, item *CJSON) Bool

llgo:link (*CJSON).AddItemToObjectCS C.cJSON_AddItemToObjectCS

func (*CJSON) AddNullToObject

func (p *CJSON) AddNullToObject(name *int8) *CJSON

llgo:link (*CJSON).AddNullToObject C.cJSON_AddNullToObject

func (*CJSON) AddNumberToObject

func (p *CJSON) AddNumberToObject(name *int8, number float64) *CJSON

llgo:link (*CJSON).AddNumberToObject C.cJSON_AddNumberToObject

func (*CJSON) AddObjectToObject

func (p *CJSON) AddObjectToObject(name *int8) *CJSON

llgo:link (*CJSON).AddObjectToObject C.cJSON_AddObjectToObject

func (*CJSON) AddPatchToArray

func (p *CJSON) AddPatchToArray(operation *int8, path *int8, value *CJSON)

llgo:link (*CJSON).AddPatchToArray C.cJSONUtils_AddPatchToArray

func (*CJSON) AddRawToObject

func (p *CJSON) AddRawToObject(name *int8, raw *int8) *CJSON

llgo:link (*CJSON).AddRawToObject C.cJSON_AddRawToObject

func (*CJSON) AddStringToObject

func (p *CJSON) AddStringToObject(name *int8, string *int8) *CJSON

llgo:link (*CJSON).AddStringToObject C.cJSON_AddStringToObject

func (*CJSON) AddTrueToObject

func (p *CJSON) AddTrueToObject(name *int8) *CJSON

llgo:link (*CJSON).AddTrueToObject C.cJSON_AddTrueToObject

func (*CJSON) ApplyPatches

func (p *CJSON) ApplyPatches(patches *CJSON) c.Int

llgo:link (*CJSON).ApplyPatches C.cJSONUtils_ApplyPatches

func (*CJSON) ApplyPatchesCaseSensitive

func (p *CJSON) ApplyPatchesCaseSensitive(patches *CJSON) c.Int

llgo:link (*CJSON).ApplyPatchesCaseSensitive C.cJSONUtils_ApplyPatchesCaseSensitive

func (*CJSON) Compare

func (p *CJSON) Compare(b *CJSON, case_sensitive Bool) Bool

llgo:link (*CJSON).Compare C.cJSON_Compare

func (*CJSON) CreateArrayReference

func (p *CJSON) CreateArrayReference() *CJSON

llgo:link (*CJSON).CreateArrayReference C.cJSON_CreateArrayReference

func (*CJSON) CreateObjectReference

func (p *CJSON) CreateObjectReference() *CJSON

llgo:link (*CJSON).CreateObjectReference C.cJSON_CreateObjectReference

func (*CJSON) Delete

func (p *CJSON) Delete()

llgo:link (*CJSON).Delete C.cJSON_Delete

func (*CJSON) DeleteItemFromArray

func (p *CJSON) DeleteItemFromArray(which c.Int)

llgo:link (*CJSON).DeleteItemFromArray C.cJSON_DeleteItemFromArray

func (*CJSON) DeleteItemFromObject

func (p *CJSON) DeleteItemFromObject(string *int8)

llgo:link (*CJSON).DeleteItemFromObject C.cJSON_DeleteItemFromObject

func (*CJSON) DeleteItemFromObjectCaseSensitive

func (p *CJSON) DeleteItemFromObjectCaseSensitive(string *int8)

llgo:link (*CJSON).DeleteItemFromObjectCaseSensitive C.cJSON_DeleteItemFromObjectCaseSensitive

func (*CJSON) DetachItemFromArray

func (p *CJSON) DetachItemFromArray(which c.Int) *CJSON

llgo:link (*CJSON).DetachItemFromArray C.cJSON_DetachItemFromArray

func (*CJSON) DetachItemFromObject

func (p *CJSON) DetachItemFromObject(string *int8) *CJSON

llgo:link (*CJSON).DetachItemFromObject C.cJSON_DetachItemFromObject

func (*CJSON) DetachItemFromObjectCaseSensitive

func (p *CJSON) DetachItemFromObjectCaseSensitive(string *int8) *CJSON

llgo:link (*CJSON).DetachItemFromObjectCaseSensitive C.cJSON_DetachItemFromObjectCaseSensitive

func (*CJSON) DetachItemViaPointer

func (p *CJSON) DetachItemViaPointer(item *CJSON) *CJSON

llgo:link (*CJSON).DetachItemViaPointer C.cJSON_DetachItemViaPointer

func (*CJSON) Duplicate

func (p *CJSON) Duplicate(recurse Bool) *CJSON

llgo:link (*CJSON).Duplicate C.cJSON_Duplicate

func (*CJSON) FindPointerFromObjectTo

func (p *CJSON) FindPointerFromObjectTo(target *CJSON) *int8

llgo:link (*CJSON).FindPointerFromObjectTo C.cJSONUtils_FindPointerFromObjectTo

func (*CJSON) GenerateMergePatch

func (p *CJSON) GenerateMergePatch(to *CJSON) *CJSON

llgo:link (*CJSON).GenerateMergePatch C.cJSONUtils_GenerateMergePatch

func (*CJSON) GenerateMergePatchCaseSensitive

func (p *CJSON) GenerateMergePatchCaseSensitive(to *CJSON) *CJSON

llgo:link (*CJSON).GenerateMergePatchCaseSensitive C.cJSONUtils_GenerateMergePatchCaseSensitive

func (*CJSON) GeneratePatches

func (p *CJSON) GeneratePatches(to *CJSON) *CJSON

llgo:link (*CJSON).GeneratePatches C.cJSONUtils_GeneratePatches

func (*CJSON) GeneratePatchesCaseSensitive

func (p *CJSON) GeneratePatchesCaseSensitive(to *CJSON) *CJSON

llgo:link (*CJSON).GeneratePatchesCaseSensitive C.cJSONUtils_GeneratePatchesCaseSensitive

func (*CJSON) GetArrayItem

func (p *CJSON) GetArrayItem(index c.Int) *CJSON

llgo:link (*CJSON).GetArrayItem C.cJSON_GetArrayItem

func (*CJSON) GetArraySize

func (p *CJSON) GetArraySize() c.Int

llgo:link (*CJSON).GetArraySize C.cJSON_GetArraySize

func (*CJSON) GetNumberValue

func (p *CJSON) GetNumberValue() float64

llgo:link (*CJSON).GetNumberValue C.cJSON_GetNumberValue

func (*CJSON) GetObjectItem

func (p *CJSON) GetObjectItem(string *int8) *CJSON

llgo:link (*CJSON).GetObjectItem C.cJSON_GetObjectItem

func (*CJSON) GetObjectItemCaseSensitive

func (p *CJSON) GetObjectItemCaseSensitive(string *int8) *CJSON

llgo:link (*CJSON).GetObjectItemCaseSensitive C.cJSON_GetObjectItemCaseSensitive

func (*CJSON) GetPointer

func (p *CJSON) GetPointer(pointer *int8) *CJSON

llgo:link (*CJSON).GetPointer C.cJSONUtils_GetPointer

func (*CJSON) GetPointerCaseSensitive

func (p *CJSON) GetPointerCaseSensitive(pointer *int8) *CJSON

llgo:link (*CJSON).GetPointerCaseSensitive C.cJSONUtils_GetPointerCaseSensitive

func (*CJSON) GetStringValue

func (p *CJSON) GetStringValue() *int8

llgo:link (*CJSON).GetStringValue C.cJSON_GetStringValue

func (*CJSON) HasObjectItem

func (p *CJSON) HasObjectItem(string *int8) Bool

llgo:link (*CJSON).HasObjectItem C.cJSON_HasObjectItem

func (*CJSON) InsertItemInArray

func (p *CJSON) InsertItemInArray(which c.Int, newitem *CJSON) Bool

llgo:link (*CJSON).InsertItemInArray C.cJSON_InsertItemInArray

func (*CJSON) IsArray

func (p *CJSON) IsArray() Bool

llgo:link (*CJSON).IsArray C.cJSON_IsArray

func (*CJSON) IsBool

func (p *CJSON) IsBool() Bool

llgo:link (*CJSON).IsBool C.cJSON_IsBool

func (*CJSON) IsFalse

func (p *CJSON) IsFalse() Bool

llgo:link (*CJSON).IsFalse C.cJSON_IsFalse

func (*CJSON) IsInvalid

func (p *CJSON) IsInvalid() Bool

llgo:link (*CJSON).IsInvalid C.cJSON_IsInvalid

func (*CJSON) IsNull

func (p *CJSON) IsNull() Bool

llgo:link (*CJSON).IsNull C.cJSON_IsNull

func (*CJSON) IsNumber

func (p *CJSON) IsNumber() Bool

llgo:link (*CJSON).IsNumber C.cJSON_IsNumber

func (*CJSON) IsObject

func (p *CJSON) IsObject() Bool

llgo:link (*CJSON).IsObject C.cJSON_IsObject

func (*CJSON) IsRaw

func (p *CJSON) IsRaw() Bool

llgo:link (*CJSON).IsRaw C.cJSON_IsRaw

func (*CJSON) IsString

func (p *CJSON) IsString() Bool

llgo:link (*CJSON).IsString C.cJSON_IsString

func (*CJSON) IsTrue

func (p *CJSON) IsTrue() Bool

llgo:link (*CJSON).IsTrue C.cJSON_IsTrue

func (*CJSON) MergePatch

func (p *CJSON) MergePatch(patch *CJSON) *CJSON

llgo:link (*CJSON).MergePatch C.cJSONUtils_MergePatch

func (*CJSON) MergePatchCaseSensitive

func (p *CJSON) MergePatchCaseSensitive(patch *CJSON) *CJSON

llgo:link (*CJSON).MergePatchCaseSensitive C.cJSONUtils_MergePatchCaseSensitive

func (*CJSON) Print

func (p *CJSON) Print() *int8

llgo:link (*CJSON).Print C.cJSON_Print

func (*CJSON) PrintBuffered

func (p *CJSON) PrintBuffered(prebuffer c.Int, fmt Bool) *int8

llgo:link (*CJSON).PrintBuffered C.cJSON_PrintBuffered

func (*CJSON) PrintPreallocated

func (p *CJSON) PrintPreallocated(buffer *int8, length c.Int, format Bool) Bool

llgo:link (*CJSON).PrintPreallocated C.cJSON_PrintPreallocated

func (*CJSON) PrintUnformatted

func (p *CJSON) PrintUnformatted() *int8

llgo:link (*CJSON).PrintUnformatted C.cJSON_PrintUnformatted

func (*CJSON) ReplaceItemInArray

func (p *CJSON) ReplaceItemInArray(which c.Int, newitem *CJSON) Bool

llgo:link (*CJSON).ReplaceItemInArray C.cJSON_ReplaceItemInArray

func (*CJSON) ReplaceItemInObject

func (p *CJSON) ReplaceItemInObject(string *int8, newitem *CJSON) Bool

llgo:link (*CJSON).ReplaceItemInObject C.cJSON_ReplaceItemInObject

func (*CJSON) ReplaceItemInObjectCaseSensitive

func (p *CJSON) ReplaceItemInObjectCaseSensitive(string *int8, newitem *CJSON) Bool

llgo:link (*CJSON).ReplaceItemInObjectCaseSensitive C.cJSON_ReplaceItemInObjectCaseSensitive

func (*CJSON) ReplaceItemViaPointer

func (p *CJSON) ReplaceItemViaPointer(item *CJSON, replacement *CJSON) Bool

llgo:link (*CJSON).ReplaceItemViaPointer C.cJSON_ReplaceItemViaPointer

func (*CJSON) SetNumberHelper

func (p *CJSON) SetNumberHelper(number float64) float64

llgo:link (*CJSON).SetNumberHelper C.cJSON_SetNumberHelper

func (*CJSON) SetValuestring

func (p *CJSON) SetValuestring(valuestring *int8) *int8

llgo:link (*CJSON).SetValuestring C.cJSON_SetValuestring

func (*CJSON) SortObject

func (p *CJSON) SortObject()

llgo:link (*CJSON).SortObject C.cJSONUtils_SortObject

func (*CJSON) SortObjectCaseSensitive

func (p *CJSON) SortObjectCaseSensitive()

llgo:link (*CJSON).SortObjectCaseSensitive C.cJSONUtils_SortObjectCaseSensitive

type Hooks

type Hooks struct {
	MallocFn unsafe.Pointer
	FreeFn   unsafe.Pointer
}

func (*Hooks) InitHooks

func (p *Hooks) InitHooks()

llgo:link (*Hooks).InitHooks C.cJSON_InitHooks

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL