edma icon indicating copy to clipboard operation
edma copied to clipboard

Question - is protobuf supported?

Open omeraha opened this issue 2 years ago • 2 comments

Do you support protobuf? i.e. - can I view data stored in RocksDB as protobuf?

omeraha avatar Dec 12 '22 08:12 omeraha

@omeraha Interesting question. EDMA byte template is dynamic, you can convert protobuf type structure into a valid EDMA byte layout, then you can view bytes data in RocksDB. However, not quite understand your point. You mean convert bytes data stored in RocksDB directly into protobuf type structure, am I right?

chungquantin avatar Dec 12 '22 08:12 chungquantin

Here is the example of a custom byte template

{
	"name": "Custom layout",
	"layouts": [
		{
			"name": "name",
			"from": 0,
			"to": 5,
			"variant": "String"
		},
		{
			"name": "id",
			"from": 5,
			"to": 10,
			"variant": "Int64"
		}
	]
}

It would be best if you can provide an example and an outcome.

chungquantin avatar Dec 12 '22 08:12 chungquantin