MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / encode

Function encode

packages/ibkr/src/protobuf/SetServerLogLevelRequest.ts:21–26  ·  view source on GitHub ↗
(message: SetServerLogLevelRequest, writer: BinaryWriter = new BinaryWriter())

Source from the content-addressed store, hash-verified

19
20export const SetServerLogLevelRequest: MessageFns<SetServerLogLevelRequest> = {
21 encode(message: SetServerLogLevelRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
22 if (message.logLevel !== undefined) {
23 writer.uint32(8).int32(message.logLevel);
24 }
25 return writer;
26 },
27
28 decode(input: BinaryReader | Uint8Array, length?: number): SetServerLogLevelRequest {
29 const reader = input instanceof BinaryReader ? input : new BinaryReader(input);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected