symbol_list.go 471 B

12345678910111213141516171819202122
  1. package brotli
  2. /* Copyright 2013 Google Inc. All Rights Reserved.
  3. Distributed under MIT license.
  4. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
  5. */
  6. /* Utilities for building Huffman decoding tables. */
  7. type symbolList struct {
  8. storage []uint16
  9. offset int
  10. }
  11. func symbolListGet(sl symbolList, i int) uint16 {
  12. return sl.storage[i+sl.offset]
  13. }
  14. func symbolListPut(sl symbolList, i int, val uint16) {
  15. sl.storage[i+sl.offset] = val
  16. }