flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

--force-empty only support cpp ?

Open Lynnworld opened this issue 1 year ago • 0 comments

Hello , I wrote a golang app comunicate to a app c++, while using flatc I found --force-empty not working in golang. it gennerate some code like

        type_Offset := flatbuffers.UOffsetT(0)
	if t.Type != "" {
		type_Offset = builder.CreateString(t.Type)
	}

it mean no field in builder while accessing it in C++ , I got 0 so coredump.

Lynnworld avatar Jan 08 '24 09:01 Lynnworld