
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/yukari/trunk@145 f3bd38d9-da89-464d-a02a-eb04e43141b5
23 lines
471 B
Go
23 lines
471 B
Go
package brotli
|
|
|
|
/* Copyright 2013 Google Inc. All Rights Reserved.
|
|
|
|
Distributed under MIT license.
|
|
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
/* Utilities for building Huffman decoding tables. */
|
|
|
|
type symbolList struct {
|
|
storage []uint16
|
|
offset int
|
|
}
|
|
|
|
func symbolListGet(sl symbolList, i int) uint16 {
|
|
return sl.storage[i+sl.offset]
|
|
}
|
|
|
|
func symbolListPut(sl symbolList, i int, val uint16) {
|
|
sl.storage[i+sl.offset] = val
|
|
}
|