Lines Matching defs:D

129 type D struct {  struct
130 Ctx context.Context
131 Endian Endian
132 Value *Value
133 Options Options
135 bitBuf *bitio.Buffer
137 readBuf *[]byte
171 func (d *D) FieldDecoder(name string, bitBuf *bitio.Buffer, v interface{}) *D {
188 func (d *D) Copy(r io.Writer, w io.Reader) (int64, error) {
194 func (d *D) MustCopy(r io.Writer, w io.Reader) int64 {
202 func (d *D) MustNewBitBufFromReader(r io.Reader) *bitio.Buffer {
208 func (d *D) SharedReadBuf(n int) []byte {
218 func (d *D) FillGaps(r ranges.Range, namePrefix string) {
263 func (d *D) Errorf(format string, a ...interface{}) {
270 func (d *D) Fatalf(format string, a ...interface{}) {
274 func (d *D) IOPanic(err error, op string) {
279 func (d *D) bits(nBits int) (uint64, error) {
294 func (d *D) Bits(nBits int) (uint64, error) {
302 func (d *D) PeekBits(nBits int) uint64 {
310 func (d *D) PeekBytes(nBytes int) []byte {
318 … (d *D) PeekFind(nBits int, seekBits int64, fn func(v uint64) bool, maxLen int64) (int64, uint64) {
329 func (d *D) TryHasBytes(hb []byte) bool {
339 func (d *D) PeekFindByte(findV uint8, maxLen int64) int64 {
352 func (d *D) TryPeekBits(nBits int) (uint64, error) {
364 …yPeekFind(nBits int, seekBits int64, maxLen int64, fn func(v uint64) bool) (int64, uint64, error) {
412 func (d *D) BytesRange(firstBit int64, nBytes int) []byte {
420 func (d *D) BytesLen(nBytes int) []byte {
429 func (d *D) BitBufRange(firstBit int64, nBits int64) *bitio.Buffer {
437 func (d *D) Pos() int64 {
445 func (d *D) Len() int64 {
449 func (d *D) End() bool {
457 func (d *D) NotEnd() bool { return !d.End() }
459 func (d *D) BitsLeft() int64 {
467 func (d *D) AlignBits(nBits int) int {
475 func (d *D) ByteAlignBits() int {
483 func (d *D) BytePos() int64 {
491 func (d *D) SeekRel(deltaBits int64) int64 {
499 func (d *D) SeekAbs(pos int64) int64 {
507 func (d *D) AddChild(v *Value) {
523 func (d *D) FieldGet(name string) *Value {
537 func (d *D) FieldMustGet(name string) *Value {
544 func (d *D) FieldArray(name string, fn func(d *D), sms ...scalar.Mapper) *D {
551 func (d *D) FieldArrayValue(name string) *D {
555 func (d *D) FieldStruct(name string, fn func(d *D)) *D {
562 func (d *D) FieldStructValue(name string) *D {
566 …(d *D) FieldStructArrayLoop(name string, structName string, condFn func() bool, fn func(d *D)) *D {
574 func (d *D) FieldArrayLoop(name string, condFn func() bool, fn func(d *D)) *D {
582 func (d *D) FieldRangeFn(name string, firstBit int64, nBits int64, fn func() *Value) *Value {
592 func (d *D) AssertAtLeastBitsLeft(nBits int64) {
603 func (d *D) AssertLeastBytesLeft(nBytes int64) {
615 func (d *D) FieldValueU(name string, a uint64, sms ...scalar.Mapper) {
619 func (d *D) FieldValueS(name string, a int64, sms ...scalar.Mapper) {
623 func (d *D) FieldValueBool(name string, a bool, sms ...scalar.Mapper) {
627 func (d *D) FieldValueFloat(name string, a float64, sms ...scalar.Mapper) {
631 func (d *D) FieldValueStr(name string, a string, sms ...scalar.Mapper) {
635 func (d *D) FieldValueRaw(name string, a []byte, sms ...scalar.Mapper) {
641 func (d *D) LenFn(nBits int64, fn func(d *D)) {
646 func (d *D) RangeFn(firstBit int64, nBits int64, fn func(d *D)) {
684 func (d *D) Format(group Group, inArg interface{}) interface{} {
713 …c (d *D) TryFieldFormat(name string, group Group, inArg interface{}) (*Value, interface{}, error) {
735 func (d *D) FieldFormat(name string, group Group, inArg interface{}) (*Value, interface{}) {
743 …dFormatLen(name string, nBits int64, group Group, inArg interface{}) (*Value, interface{}, error) {
765 …D) FieldFormatLen(name string, nBits int64, group Group, inArg interface{}) (*Value, interface{}) {
774 …string, firstBit int64, nBits int64, group Group, inArg interface{}) (*Value, interface{}, error) {
793 …e(name string, firstBit int64, nBits int64, group Group, inArg interface{}) (*Value, interface{}) {
802 …itBuf(name string, bb *bitio.Buffer, group Group, inArg interface{}) (*Value, interface{}, error) {
822 …FormatBitBuf(name string, bb *bitio.Buffer, group Group, inArg interface{}) (*Value, interface{}) {
832 func (d *D) FieldRootBitBuf(name string, bb *bitio.Buffer) *Value {
844 func (d *D) FieldStructRootBitBufFn(name string, bb *bitio.Buffer, fn func(d *D)) *Value {
856 …ing, nBits int64, fn func(r io.Reader) (io.ReadCloser, error), group Group) (*Value, interface{}) {
875 …er) io.Reader, group Group, inArg interface{}) (int64, *bitio.Buffer, *Value, interface{}, error) {
900 …io.Reader) io.Reader, group Group, inArg interface{}) (int64, *bitio.Buffer, *Value, interface{}) {
908 func (d *D) TryFieldValue(name string, fn func() (*Value, error)) (*Value, error) {
923 func (d *D) FieldValue(name string, fn func() *Value) *Value {
932 func (d *D) TryFieldScalarFn(name string, sfn scalar.Fn, sms ...scalar.Mapper) (*scalar.S, error) {
952 func (d *D) FieldScalarFn(name string, sfn scalar.Fn, sms ...scalar.Mapper) *scalar.S {