MCPcopy
hub / github.com/cita-777/metapi / push

Method push

src/server/services/platforms/newApi.ts:131–135  ·  view source on GitHub ↗
(value: number | null)

Source from the content-addressed store, hash-verified

129 private extractGobFieldInts(payload: Buffer, fieldName: string): number[] {
130 const ids: number[] = [];
131 const push = (value: number | null) => {
132 if (typeof value !== 'number' || Number.isNaN(value)) return;
133 if (value <= 0 || value > 10_000_000) return;
134 if (!ids.includes(value)) ids.push(value);
135 };
136
137 const marker = Buffer.concat([
138 Buffer.from(fieldName, 'utf8'),

Callers 15

collectSourceFilesFunction · 0.80
isSafeRegexPatternBodyFunction · 0.80
toArraySetFunction · 0.80
parseCharClassFunction · 0.80
parseSequenceFunction · 0.80
parseExpressionFunction · 0.80
matchNodeFunction · 0.80
onMessageFunction · 0.80

Calls

no outgoing calls

Tested by 11

collectSourceFilesFunction · 0.64
onMessageFunction · 0.64
listTransformerFilesFunction · 0.64
executeFunction · 0.64
createStubClientFunction · 0.64
executeFunction · 0.64
executeFunction · 0.64
executeFunction · 0.64
createReleaseBinaryFunction · 0.64
makeTempDirFunction · 0.64