Renamed ChannelBuffer.writePlaceholder to writeNul
This commit is contained in:
parent
fbf8ab5ea7
commit
44c5860d25
@ -327,7 +327,7 @@ public abstract class AbstractChannelBuffer implements ChannelBuffer {
|
|||||||
return writtenBytes;
|
return writtenBytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void writePlaceholder(int length) {
|
public void writeNul(int length) {
|
||||||
if (length == 0) {
|
if (length == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -465,7 +465,7 @@ public interface ChannelBuffer extends Comparable<ChannelBuffer> {
|
|||||||
void writeBytes(InputStream in, int length) throws IOException;
|
void writeBytes(InputStream in, int length) throws IOException;
|
||||||
int writeBytes(ScatteringByteChannel in, int length) throws IOException;
|
int writeBytes(ScatteringByteChannel in, int length) throws IOException;
|
||||||
|
|
||||||
void writePlaceholder(int length);
|
void writeNul(int length);
|
||||||
|
|
||||||
int indexOf(int fromIndex, int toIndex, byte value);
|
int indexOf(int fromIndex, int toIndex, byte value);
|
||||||
int indexOf(int fromIndex, int toIndex, ChannelBufferIndexFinder indexFinder);
|
int indexOf(int fromIndex, int toIndex, ChannelBufferIndexFinder indexFinder);
|
||||||
|
@ -201,9 +201,9 @@ public class DynamicChannelBuffer extends AbstractChannelBuffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writePlaceholder(int length) {
|
public void writeNul(int length) {
|
||||||
ensureWritableBytes(length);
|
ensureWritableBytes(length);
|
||||||
super.writePlaceholder(length);
|
super.writeNul(length);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ChannelBuffer duplicate() {
|
public ChannelBuffer duplicate() {
|
||||||
|
@ -453,7 +453,7 @@ class ReplayingDecoderBuffer implements ChannelBuffer {
|
|||||||
reject();
|
reject();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void writePlaceholder(int length) {
|
public void writeNul(int length) {
|
||||||
reject();
|
reject();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user