@@ -3499,6 +3499,7 @@ impl ::core::fmt::Display for SpvTypeArgs {
3499
3499
write ! ( f, "{} {{ " , Self :: NAME ) ?;
3500
3500
write ! ( f, "{}: {}" , "type_id" , self . type_id( ) ) ?;
3501
3501
write ! ( f, ", {}: {}" , "clients_count" , self . clients_count( ) ) ?;
3502
+ write ! ( f, ", {}: {}" , "flags" , self . flags( ) ) ?;
3502
3503
write ! ( f, " }}" )
3503
3504
}
3504
3505
}
@@ -3509,19 +3510,22 @@ impl ::core::default::Default for SpvTypeArgs {
3509
3510
}
3510
3511
}
3511
3512
impl SpvTypeArgs {
3512
- const DEFAULT_VALUE : [ u8 ; 33 ] = [
3513
+ const DEFAULT_VALUE : [ u8 ; 34 ] = [
3513
3514
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
3514
- 0 , 0 , 0 ,
3515
+ 0 , 0 , 0 , 0 ,
3515
3516
] ;
3516
- pub const TOTAL_SIZE : usize = 33 ;
3517
- pub const FIELD_SIZES : [ usize ; 2 ] = [ 32 , 1 ] ;
3518
- pub const FIELD_COUNT : usize = 2 ;
3517
+ pub const TOTAL_SIZE : usize = 34 ;
3518
+ pub const FIELD_SIZES : [ usize ; 3 ] = [ 32 , 1 , 1 ] ;
3519
+ pub const FIELD_COUNT : usize = 3 ;
3519
3520
pub fn type_id ( & self ) -> Hash {
3520
3521
Hash :: new_unchecked ( self . 0 . slice ( 0 ..32 ) )
3521
3522
}
3522
3523
pub fn clients_count ( & self ) -> Byte {
3523
3524
Byte :: new_unchecked ( self . 0 . slice ( 32 ..33 ) )
3524
3525
}
3526
+ pub fn flags ( & self ) -> Byte {
3527
+ Byte :: new_unchecked ( self . 0 . slice ( 33 ..34 ) )
3528
+ }
3525
3529
pub fn as_reader < ' r > ( & ' r self ) -> SpvTypeArgsReader < ' r > {
3526
3530
SpvTypeArgsReader :: new_unchecked ( self . as_slice ( ) )
3527
3531
}
@@ -3551,6 +3555,7 @@ impl molecule::prelude::Entity for SpvTypeArgs {
3551
3555
Self :: new_builder ( )
3552
3556
. type_id ( self . type_id ( ) )
3553
3557
. clients_count ( self . clients_count ( ) )
3558
+ . flags ( self . flags ( ) )
3554
3559
}
3555
3560
}
3556
3561
#[ derive( Clone , Copy ) ]
@@ -3574,19 +3579,23 @@ impl<'r> ::core::fmt::Display for SpvTypeArgsReader<'r> {
3574
3579
write ! ( f, "{} {{ " , Self :: NAME ) ?;
3575
3580
write ! ( f, "{}: {}" , "type_id" , self . type_id( ) ) ?;
3576
3581
write ! ( f, ", {}: {}" , "clients_count" , self . clients_count( ) ) ?;
3582
+ write ! ( f, ", {}: {}" , "flags" , self . flags( ) ) ?;
3577
3583
write ! ( f, " }}" )
3578
3584
}
3579
3585
}
3580
3586
impl < ' r > SpvTypeArgsReader < ' r > {
3581
- pub const TOTAL_SIZE : usize = 33 ;
3582
- pub const FIELD_SIZES : [ usize ; 2 ] = [ 32 , 1 ] ;
3583
- pub const FIELD_COUNT : usize = 2 ;
3587
+ pub const TOTAL_SIZE : usize = 34 ;
3588
+ pub const FIELD_SIZES : [ usize ; 3 ] = [ 32 , 1 , 1 ] ;
3589
+ pub const FIELD_COUNT : usize = 3 ;
3584
3590
pub fn type_id ( & self ) -> HashReader < ' r > {
3585
3591
HashReader :: new_unchecked ( & self . as_slice ( ) [ 0 ..32 ] )
3586
3592
}
3587
3593
pub fn clients_count ( & self ) -> ByteReader < ' r > {
3588
3594
ByteReader :: new_unchecked ( & self . as_slice ( ) [ 32 ..33 ] )
3589
3595
}
3596
+ pub fn flags ( & self ) -> ByteReader < ' r > {
3597
+ ByteReader :: new_unchecked ( & self . as_slice ( ) [ 33 ..34 ] )
3598
+ }
3590
3599
}
3591
3600
impl < ' r > molecule:: prelude:: Reader < ' r > for SpvTypeArgsReader < ' r > {
3592
3601
type Entity = SpvTypeArgs ;
@@ -3613,11 +3622,12 @@ impl<'r> molecule::prelude::Reader<'r> for SpvTypeArgsReader<'r> {
3613
3622
pub struct SpvTypeArgsBuilder {
3614
3623
pub ( crate ) type_id : Hash ,
3615
3624
pub ( crate ) clients_count : Byte ,
3625
+ pub ( crate ) flags : Byte ,
3616
3626
}
3617
3627
impl SpvTypeArgsBuilder {
3618
- pub const TOTAL_SIZE : usize = 33 ;
3619
- pub const FIELD_SIZES : [ usize ; 2 ] = [ 32 , 1 ] ;
3620
- pub const FIELD_COUNT : usize = 2 ;
3628
+ pub const TOTAL_SIZE : usize = 34 ;
3629
+ pub const FIELD_SIZES : [ usize ; 3 ] = [ 32 , 1 , 1 ] ;
3630
+ pub const FIELD_COUNT : usize = 3 ;
3621
3631
pub fn type_id ( mut self , v : Hash ) -> Self {
3622
3632
self . type_id = v;
3623
3633
self
@@ -3626,6 +3636,10 @@ impl SpvTypeArgsBuilder {
3626
3636
self . clients_count = v;
3627
3637
self
3628
3638
}
3639
+ pub fn flags ( mut self , v : Byte ) -> Self {
3640
+ self . flags = v;
3641
+ self
3642
+ }
3629
3643
}
3630
3644
impl molecule:: prelude:: Builder for SpvTypeArgsBuilder {
3631
3645
type Entity = SpvTypeArgs ;
@@ -3636,6 +3650,7 @@ impl molecule::prelude::Builder for SpvTypeArgsBuilder {
3636
3650
fn write < W : molecule:: io:: Write > ( & self , writer : & mut W ) -> molecule:: io:: Result < ( ) > {
3637
3651
writer. write_all ( self . type_id . as_slice ( ) ) ?;
3638
3652
writer. write_all ( self . clients_count . as_slice ( ) ) ?;
3653
+ writer. write_all ( self . flags . as_slice ( ) ) ?;
3639
3654
Ok ( ( ) )
3640
3655
}
3641
3656
fn build ( & self ) -> Self :: Entity {
0 commit comments