1. role Encoding::Decoder {
  2. method add-bytes(Blob:D $bytes --> Nil) { ... }
  3. method consume-available-chars(--> Str:D) { ... }
  4. method consume-all-chars(--> Str:D) { ... }
  5. method consume-exactly-chars(int $chars, Bool:D :$eof = False --> Str) { ... }
  6. method set-line-separators(@seps --> Nil) { ... }
  7. method consume-line-chars(Bool:D :$chomp = False, Bool:D :$eof = False --> Str) { ... }
  8. method is-empty(--> Bool) { ... }
  9. method bytes-available(--> Int:D) { ... }
  10. method consume-exactly-bytes(int $bytes --> Blob) { ... }
  11. }