1 // Code generated by golang.org/x/text/internal/gen/bitfield. DO NOT EDIT. 2 3 package bitfield 4 5 type myInt uint32 6 7 func (m myInt) fob() uint16 { 8 return uint16((m >> 16) & 0xffff) 9 } 10 11 func (m myInt) baz() int8 { 12 return int8((m >> 11) & 0x1f) 13 } 14 15 func (m myInt) bar() myUint8 { 16 return myUint8((m >> 8) & 0x7) 17 } 18 19 func (m myInt) Bool() bool { 20 const bit = 1 << 7 21 return m&bit == bit 22 } 23 24 func (m myInt) Baz() int8 { 25 return int8((m >> 4) & 0x7) 26 } 27