import { decode , encode , types } from "binary-data" ; export class RenegotiationIndication { static type = 65281 ; static readonly spec = { type : types . uint16be , data : types . uint8 , } ; public type : number = RenegotiationIndication . type ; public data : number = 0 ; constructor ( props = { } ) { Object . assign ( this , props ) ; } static createEmpty ( ) { const v = new RenegotiationIndication ( ) ; return v ; } static deSerialize ( buf ) { return new RenegotiationIndication ( decode ( buf , RenegotiationIndication . spec ) ) ; } serialize ( ) { const res = encode ( this , RenegotiationIndication . spec ) . slice ( ) ; return Buffer . from ( res ) ; } get extension ( ) { return { type : this . type , data : this . serialize ( ) . slice ( 2 ) , } ; } }