;;-*-Lisp-*-
(in-package goal)

;; definition of type dgo-entry
(deftype dgo-entry (structure)
  ((offset uint32  :offset-assert   0)
   (length uint32  :offset-assert   4)
   )
  :method-count-assert 9
  :size-assert         #x8
  :flag-assert         #x900000008
  )

;; definition for method 3 of type dgo-entry
(defmethod inspect dgo-entry ((obj dgo-entry))
  (when (not obj)
    (set! obj obj)
    (goto cfg-4)
    )
  (format #t "[~8x] ~A~%" obj 'dgo-entry)
  (format #t "~1Toffset: ~D~%" (-> obj offset))
  (format #t "~1Tlength: ~D~%" (-> obj length))
  (label cfg-4)
  obj
  )

;; definition of type dgo-file
(deftype dgo-file (basic)
  ((num-go-files uint32          :offset-assert   4)
   (total-length uint32          :offset-assert   8)
   (rsvd         uint32          :offset-assert  12)
   (data         uint8  :dynamic :offset-assert  16)
   )
  :method-count-assert 9
  :size-assert         #x10
  :flag-assert         #x900000010
  )

;; definition for method 3 of type dgo-file
(defmethod inspect dgo-file ((obj dgo-file))
  (when (not obj)
    (set! obj obj)
    (goto cfg-4)
    )
  (format #t "[~8x] ~A~%" obj (-> obj type))
  (format #t "~1Tnum-go-files: ~D~%" (-> obj num-go-files))
  (format #t "~1Ttotal-length: ~D~%" (-> obj total-length))
  (format #t "~1Trsvd: ~D~%" (-> obj rsvd))
  (format #t "~1Tdata[0] @ #x~X~%" (-> obj data))
  (label cfg-4)
  obj
  )

;; failed to figure out what this is:
0




