Mercurial Hosting > luan
comparison src/org/eclipse/jetty/io/JBuffer.java @ 1059:013939bfc9e8
remove JBuffer.poke()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 08 Nov 2016 05:39:33 -0700 |
parents | 87275900646e |
children | 957f758dcffc |
comparison
equal
deleted
inserted
replaced
1058:419bf9c03d84 | 1059:013939bfc9e8 |
---|---|
182 // Thread.dumpStack(); | 182 // Thread.dumpStack(); |
183 throw new RuntimeException("toString"); | 183 throw new RuntimeException("toString"); |
184 } | 184 } |
185 | 185 |
186 | 186 |
187 private JBuffer pokeBuffer(int index) { | |
188 JBuffer dup = duplicate(); | |
189 dup.setPutIndex(index); | |
190 return dup; | |
191 } | |
192 | |
193 public int poke(int index, byte b[], int offset, int length) { | |
194 return pokeBuffer(index).put(b,offset,length); | |
195 } | |
196 | |
197 public void poke(int index, byte b) { | |
198 pokeBuffer(index).put(b); | |
199 } | |
200 | |
201 | |
202 public byte get(int index) { | 187 public byte get(int index) { |
203 return bb.get(index); | 188 return bb.get(index); |
204 } | 189 } |
205 | 190 |
206 } | 191 } |