Write(b) {
        const buf = new util_1.default.Reader(b);
        // Version (uint8)
        {
            this.version = bytes_1.read(buf, 'uint8');
        }
        // OutputDescription (string)
        {
            this.output_description = bytes_1.ReadVarChar(buf, 32);
        }
        // Tags ([]uint8)
        {
            const size = bytes_1.ReadVariableSize(buf, 8, 8);
            const type = '[]uint8'.slice(2);
            this.tags = [...Array(size)].map(() => bytes_1.read(buf, type));
        }
        // CustomTags ([]OutputTag)
        {
            const size = bytes_1.ReadVariableSize(buf, 8, 8);
            this.custom_tags = [...Array(size)].map(() => {
                const v = new field_types_1.OutputTag();
                v.Write(buf);
                return v;
            });
        }
        return 0;
    }
// Write populates the fields in OutputMetadata from the byte slice
Write populates the fields in OutputMetadata from the byte slice
Write populates the fields in OutputMetadata from the byte slice
Write(b) {
        const buf = new util_1.default.Reader(b);
        {
            this.version = bytes_1.read(buf, 'uint8');
        }
        {
            this.output_description = bytes_1.ReadVarChar(buf, 32);
        }
        {
            const size = bytes_1.ReadVariableSize(buf, 8, 8);
            const type = '[]uint8'.slice(2);
            this.tags = [...Array(size)].map(() => bytes_1.read(buf, type));
        }
        {
            const size = bytes_1.ReadVariableSize(buf, 8, 8);
            this.custom_tags = [...Array(size)].map(() => {
                const v = new field_types_1.OutputTag();
                v.Write(buf);
                return v;
            });
        }
        return 0;
    }
Write ( b ) { const buf = new util_1 . default . Reader ( b ) ; { this . version = bytes_1 . read ( buf , 'uint8' ) ; } { this . output_description = bytes_1 . ReadVarChar ( buf , 32 ) ; } { const size = bytes_1 . ReadVariableSize ( buf , 8 , 8 ) ; const type = '[]uint8' . slice ( 2 ) ; this . tags = [ ... Array ( size ) ] . map ( ( ) => bytes_1 . read ( buf , type ) ) ; } { const size = bytes_1 . ReadVariableSize ( buf , 8 , 8 ) ; this . custom_tags = [ ... Array ( size ) ] . map ( ( ) => { const v = new field_types_1 . OutputTag ( ) ; v . Write ( buf ) ; return v ; } ) ; } return 0 ; }
Write populates the fields in OutputMetadata from the byte slice
Write populates the fields in OutputMetadata from the byte slice
// Version (uint8) // OutputDescription (string) // Tags ([]uint8) // CustomTags ([]OutputTag)