MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / dataTypeToBytesPerIQSample

Function dataTypeToBytesPerIQSample

client/src/utils/selector.ts:136–150  ·  view source on GitHub ↗
(dataType: string)

Source from the content-addressed store, hash-verified

134}
135
136export function dataTypeToBytesPerIQSample(dataType: string): number {
137 // remember there are 2 numbers per IQ sample
138 if (dataType.includes('8')) {
139 return 2;
140 } else if (dataType.includes('16')) {
141 return 4;
142 } else if (dataType.includes('32')) {
143 return 8;
144 } else if (dataType.includes('64')) {
145 return 16;
146 } else {
147 console.error('unsupported datatype');
148 return 2;
149 }
150}

Callers 2

getBytesPerIQSampleMethod · 0.90
handleSubmitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected