@@ -167,7 +167,7 @@ export function dynamicConditionDecoratorFactory<This extends object, Target, Va
167
167
*
168
168
* ```typescript
169
169
* class Protocol {
170
- * @Relation (PrimitiveSymbol.u8)
170
+ * @Uint 8
171
171
* type: number
172
172
*
173
173
* @IfThen (instance => instance.type === 0x01, PrimitiveSymbol.u16)
@@ -233,7 +233,7 @@ export function IfThen<This extends object, Target, Value, Args extends string>
233
233
*
234
234
* ```typescript
235
235
* class Protocol {
236
- * @Relation (PrimitiveSymbol.u8)
236
+ * @Uint 8
237
237
* type: number
238
238
*
239
239
* @IfThen (_ => _.type === 0x01, PrimitiveSymbol.u16)
@@ -292,7 +292,7 @@ export function Else<This extends object, Target, Value, Args extends string> (t
292
292
*
293
293
* ```typescript
294
294
* class Chunk {
295
- * @Relation (PrimitiveSymbol.u8)
295
+ * @Uint 8
296
296
* type: number
297
297
*
298
298
* @Choice ('type', {
@@ -322,7 +322,7 @@ export function Else<This extends object, Target, Value, Args extends string> (t
322
322
* _type: number
323
323
*
324
324
* @Count ('_length')
325
- * @Relation (PrimitiveSymbol.u8)
325
+ * @Uint 8
326
326
* data: number[]
327
327
*
328
328
* ...
@@ -335,18 +335,18 @@ export function Else<This extends object, Target, Value, Args extends string> (t
335
335
*
336
336
* class Header {
337
337
* @Count (4)
338
- * @Relation (PrimitiveSymbol.u8)
338
+ * @Uint 8
339
339
* magic: number
340
340
*
341
- * @Relation (PrimitiveSymbol.u32)
341
+ * @Uint 32
342
342
* crc: number
343
343
* }
344
344
*
345
345
* class Protocol {
346
- * @Relation (PrimitiveSymbol.u32)
346
+ * @Uint 32
347
347
* length: number
348
348
*
349
- * @Relation (PrimitiveSymbol.u8)
349
+ * @Uint 8
350
350
* type: number
351
351
*
352
352
* @Choice ('type', {
@@ -363,10 +363,10 @@ export function Else<This extends object, Target, Value, Args extends string> (t
363
363
*
364
364
* ```typescript
365
365
* class Protocol {
366
- * @Relation (PrimitiveSymbol.u32)
366
+ * @Uint 32
367
367
* length: number
368
368
*
369
- * @Relation (PrimitiveSymbol.u8)
369
+ * @Uint 8
370
370
* type: number
371
371
*
372
372
* @Choice (_ => _.type, {
@@ -384,10 +384,10 @@ export function Else<This extends object, Target, Value, Args extends string> (t
384
384
*
385
385
* ```typescript
386
386
* class Protocol {
387
- * @Relation (PrimitiveSymbol.u32)
387
+ * @Uint 32
388
388
* length: number
389
389
*
390
- * @Relation (PrimitiveSymbol.u8)
390
+ * @Uint 32
391
391
* type: number
392
392
*
393
393
* @Choice ('type', {
@@ -406,7 +406,7 @@ export function Else<This extends object, Target, Value, Args extends string> (t
406
406
*
407
407
* ```typescript
408
408
* class Protocol {
409
- * @Relation (PrimitiveSymbol.u8)
409
+ * @Uint 8
410
410
* something: number
411
411
*
412
412
* @Choice ('something', {
@@ -489,10 +489,10 @@ export function Choice<This extends object, Value, Args extends string> (cmp: St
489
489
* }
490
490
*
491
491
* class Protocol {
492
- * @Relation (PrimitiveType.u8)
492
+ * @Uint 8
493
493
* foo: number
494
494
*
495
- * @Relation (PrimitiveType.u8)
495
+ * @Uint 8
496
496
* bar: number
497
497
*
498
498
* @Select (_ => DEFINITION[_.foo][_.bar])
@@ -519,6 +519,7 @@ export function Choice<This extends object, Value, Args extends string> (cmp: St
519
519
* }[_.type]()))
520
520
* data: any
521
521
* }
522
+ *
522
523
* class Protocol {
523
524
* @Uint 32
524
525
* length: number
0 commit comments