Overview
Comment: | encoding/mtf.Encoder now returns an io.Reader. This allows to encoding in place without allocating buffers. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
470d7e947b552686794784b96cdb8dca |
User & Date: | spaskalev on 2015-01-04 12:24:08 |
Other Links: | manifest | tags |
Context
2015-01-04
| ||
12:52 | commands/mtf now uses fibonacci representation when encoding check-in: 6bd6e6d5c7 user: spaskalev tags: trunk | |
12:24 | encoding/mtf.Encoder now returns an io.Reader. This allows to encoding in place without allocating buffers. check-in: 470d7e947b user: spaskalev tags: trunk | |
2015-01-02
| ||
17:55 | update the copyright notice for 2015 check-in: 783d0b7f51 user: spaskalev tags: trunk | |
Changes
Modified src/0dev.org/commands/mtf/main.go from [8212c2eba2] to [a9b931eec8].
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | + + + + - + - - - - + + + - - + - + - - + - + - - - - - - - - + | package main import ( mtf "0dev.org/encoding/mtf" iou "0dev.org/ioutil" "flag" "fmt" "io" "os" ) func main() { d := flag.Bool("d", false, "Use to toggle decode mode") flag.Parse() var code int |
︙ |
Modified src/0dev.org/encoding/mtf/mtf.go from [f2ad12a795] to [cebf1719c8].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | - - - - - - - - + - - - - - + - - - - - - - - - - - - + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - + - - - - - - - - - - + - - - - - - - - - - - - - | 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, } type context struct { table [256]byte } |
Modified src/0dev.org/encoding/mtf/mtf_test.go from [efb3f6ccdb] to [8e70ad85db].
1 2 3 4 5 6 7 8 9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | - + - + - - - - - + + + + + + - - - - + - - - - - + + - - - + + - - - - + + + + - - - - + + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + - - + + | package mtf import ( diff "0dev.org/diff" "bytes" "io" "testing" ) |