public void poke(int index, byte b) { if (isReadOnly()) throw new IllegalStateException(__READONLY); if (index < 0) throw new IllegalArgumentException("index<0: " + index + "<0"); if (index > capacity()) throw new IllegalArgumentException("index>capacity(): " + index + ">" + capacity()); _buf.put(index,b); }
public void poke(int index, byte b) { if (isReadOnly()) throw new IllegalStateException(__READONLY); if (index < 0) throw new IllegalArgumentException("index<0: " + index + "<0"); if (index > capacity()) throw new IllegalArgumentException("index>capacity(): " + index + ">" + capacity()); _buf.put(index,b); }
public void poke(int index, byte b) { if (isReadOnly()) throw new IllegalStateException(__READONLY); if (index < 0) throw new IllegalArgumentException("index<0: " + index + "<0"); if (index > capacity()) throw new IllegalArgumentException("index>capacity(): " + index + ">" + capacity()); _buf.put(index,b); }
public void poke(int index, byte b) { if (isReadOnly()) throw new IllegalStateException(__READONLY); if (index < 0) throw new IllegalArgumentException("index<0: " + index + "<0"); if (index > capacity()) throw new IllegalArgumentException("index>capacity(): " + index + ">" + capacity()); _buf.put(index,b); }
@Override public int poke(int index, byte[] b, int offset, int length) { if (isReadOnly()) throw new IllegalStateException(__READONLY); if (index < 0) throw new IllegalArgumentException("index<0: " + index + "<0"); if (index + length > capacity()) { length=capacity()-index; if (length<0) throw new IllegalArgumentException("index>capacity(): " + index + ">" + capacity()); } try { _buf.position(index); int space=_buf.remaining(); if (length>space) length=space; if (length>0) _buf.put(b,offset,length); return length; } finally { _buf.position(0); } }
@Override public int poke(int index, byte[] b, int offset, int length) { if (isReadOnly()) throw new IllegalStateException(__READONLY); if (index < 0) throw new IllegalArgumentException("index<0: " + index + "<0"); if (index + length > capacity()) { length=capacity()-index; if (length<0) throw new IllegalArgumentException("index>capacity(): " + index + ">" + capacity()); } try { _buf.position(index); int space=_buf.remaining(); if (length>space) length=space; if (length>0) _buf.put(b,offset,length); return length; } finally { _buf.position(0); } }
@Override public int poke(int index, byte[] b, int offset, int length) { if (isReadOnly()) throw new IllegalStateException(__READONLY); if (index < 0) throw new IllegalArgumentException("index<0: " + index + "<0"); if (index + length > capacity()) { length=capacity()-index; if (length<0) throw new IllegalArgumentException("index>capacity(): " + index + ">" + capacity()); } try { _buf.position(index); int space=_buf.remaining(); if (length>space) length=space; if (length>0) _buf.put(b,offset,length); return length; } finally { _buf.position(0); } }
@Override public int poke(int index, byte[] b, int offset, int length) { if (isReadOnly()) throw new IllegalStateException(__READONLY); if (index < 0) throw new IllegalArgumentException("index<0: " + index + "<0"); if (index + length > capacity()) { length=capacity()-index; if (length<0) throw new IllegalArgumentException("index>capacity(): " + index + ">" + capacity()); } try { _buf.position(index); int space=_buf.remaining(); if (length>space) length=space; if (length>0) _buf.put(b,offset,length); return length; } finally { _buf.position(0); } }
@Override public int poke(int index, Buffer src) if (isReadOnly()) throw new IllegalStateException(__READONLY);
@Override public int poke(int index, Buffer src) if (isReadOnly()) throw new IllegalStateException(__READONLY);
@Override public int poke(int index, Buffer src) if (isReadOnly()) throw new IllegalStateException(__READONLY);
@Override public int poke(int index, Buffer src) if (isReadOnly()) throw new IllegalStateException(__READONLY);