Removed commented out code
parent
7f96d78b79
commit
658149a6ff
|
@ -67,7 +67,6 @@ func (s *FloatEncoder) Reset() {
|
|||
s.buf.Write([]byte{byte(floatCompressedGorilla << 4)})
|
||||
|
||||
s.bw.Resume(0x0, 8)
|
||||
//s.bw = bitstream.NewWriter(&s.buf)
|
||||
|
||||
s.finished = false
|
||||
s.first = true
|
||||
|
@ -75,7 +74,6 @@ func (s *FloatEncoder) Reset() {
|
|||
|
||||
func (s *FloatEncoder) Bytes() ([]byte, error) {
|
||||
return s.buf.Bytes(), s.err
|
||||
//return append([]byte{floatCompressedGorilla << 4}, s.buf.Bytes()...), s.err
|
||||
}
|
||||
|
||||
func (s *FloatEncoder) Finish() {
|
||||
|
|
|
@ -37,7 +37,6 @@ func (e *StringEncoder) Reset() {
|
|||
}
|
||||
|
||||
func (e *StringEncoder) Write(s string) {
|
||||
//println(len(e.bytes), cap(e.bytes))
|
||||
b := make([]byte, 10)
|
||||
// Append the length of the string using variable byte encoding
|
||||
i := binary.PutUvarint(b, uint64(len(s)))
|
||||
|
|
Loading…
Reference in New Issue