MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / get_enum_pack_length

Function get_enum_pack_length

sql/item.h:137–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135
136
137inline uint get_enum_pack_length(int elements)
138{
139 return elements < 256 ? 1 : 2;
140}
141
142
143inline uint get_set_pack_length(int elements)

Callers 1

initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected