{"version":3,"file":"ReadSender_WebProgramTailEdition.mjs","names":[],"sources":["../../generated/api/ReadSender_WebProgramTailEdition.ts"],"sourcesContent":["import { decodeUIntLE, Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    ReadSender_WebProgramTailEdition(addr: number): Promise<number>;\n    tryReadSender_WebProgramTailEdition(addr: number): Promise<Packet | null>;\n  }\n}\nexport default function createReadSender_WebProgramTailEdition(addr: number): Request {\n  const req = new Request(\n    AddressMapping.Sender_WebProgramTailEditionOccupancy,\n    'ReadSender_WebProgramTailEdition'\n  );\n  req.destination = addr;\n  req.address = AddressMapping.Sender_WebProgramTailEditAddr;\n  return req;\n}\nSession.prototype.ReadSender_WebProgramTailEdition =\n  async function ReadSender_WebProgramTailEdition(this: Session, addr: number): Promise<number> {\n    const req = createReadSender_WebProgramTailEdition(addr);\n    return decodeUIntLE(await this.connection.send(req));\n  };\nSession.prototype.tryReadSender_WebProgramTailEdition =\n  async function tryReadSender_WebProgramTailEdition(\n    this: Session,\n    addr: number\n  ): Promise<Packet | null> {\n    const req = createReadSender_WebProgramTailEdition(addr);\n    return this.connection.trySend(req);\n  };\n"],"mappings":";;;;AASA,SAAwB,uCAAuC,MAAuB;CACpF,MAAM,MAAM,IAAI,WAEd,kCACF;CACA,IAAI,cAAc;CAClB,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,mCAChB,eAAe,iCAAgD,MAA+B;CAC5F,MAAM,MAAM,uCAAuC,IAAI;CACvD,OAAO,aAAa,MAAM,KAAK,WAAW,KAAK,GAAG,CAAC;AACrD;AACF,QAAQ,UAAU,sCAChB,eAAe,oCAEb,MACwB;CACxB,MAAM,MAAM,uCAAuC,IAAI;CACvD,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}