@Override public void writeBoolean(boolean v) { checkLimit(this,1); super.writeBoolean(v); }
@Override public void writeBoolean(boolean v) { checkLimit(this,1); super.writeBoolean(v); }
/** * Writes boolean to specified field in pipe * calls selectStruct(id) only after setting all the object fields * @param assoc field association showing where to write * @param value true or false */ public void writeBoolean(Object assoc, boolean value) { assert(DataOutputBlobWriter.getStructType(channelWriter)<=0) : "call selectStruct(id) only after setting all the object fields."; storeAssocAndPosition(assoc); channelWriter.writeBoolean(value); }
/** * Writes boolean to specified field in pipe * calls selectStruct(id) only after setting all the object fields * @param assoc field association showing where to write * @param value true or false */ public void writeBoolean(Object assoc, boolean value) { assert(DataOutputBlobWriter.getStructType(channelWriter)<=0) : "call selectStruct(id) only after setting all the object fields."; storeAssocAndPosition(assoc); channelWriter.writeBoolean(value); }
/** * Writes boolean to specified field in pipe * calls selectStruct(id) only after setting all the object fields * @param assoc field association showing where to write * @param value true or false */ public void writeBoolean(Object assoc, boolean value) { assert(DataOutputBlobWriter.getStructType(channelWriter)<=0) : "call selectStruct(id) only after setting all the object fields."; storeAssocAndPosition(assoc); channelWriter.writeBoolean(value); }
/** * Writes boolean to specified field in pipe * @param value true or false * @param fieldId field to write to */ public void writeBoolean(boolean value, long fieldId) { assert(Pipe.structRegistry(channelWriter.backingPipe).fieldType(fieldId) == StructType.Boolean); DataOutputBlobWriter.commitBackData(channelWriter, StructRegistry.extractStructId(fieldId)); DataOutputBlobWriter.setIntBackData( channelWriter, channelWriter.position(), StructRegistry.extractFieldPosition(fieldId)); channelWriter.writeBoolean(value); assert confirmDataDoesNotWriteOverIndex(fieldId) : "Data has written over index data"; }
/** * Writes boolean to specified field in pipe * @param value true or false * @param fieldId field to write to */ public void writeBoolean(boolean value, long fieldId) { assert(Pipe.structRegistry(channelWriter.backingPipe).fieldType(fieldId) == StructType.Boolean); DataOutputBlobWriter.commitBackData(channelWriter, StructRegistry.extractStructId(fieldId)); DataOutputBlobWriter.setIntBackData( channelWriter, channelWriter.position(), StructRegistry.extractFieldPosition(fieldId)); channelWriter.writeBoolean(value); assert confirmDataDoesNotWriteOverIndex(fieldId) : "Data has written over index data"; }
/** * Writes boolean to specified field in pipe * @param value true or false * @param fieldId field to write to */ public void writeBoolean(boolean value, long fieldId) { assert(Pipe.structRegistry(channelWriter.backingPipe).fieldType(fieldId) == StructType.Boolean); DataOutputBlobWriter.commitBackData(channelWriter, StructRegistry.extractStructId(fieldId)); DataOutputBlobWriter.setIntBackData( channelWriter, channelWriter.position(), StructRegistry.extractFieldPosition(fieldId)); channelWriter.writeBoolean(value); assert confirmDataDoesNotWriteOverIndex(fieldId) : "Data has written over index data"; }
assert(Arrays.equals(HTTPHeaderDefaults.TRANSFER_ENCODING.rootBytes(),header.rootBytes())) : "Custom enums must share same ordinal positions, TRANSFER_ENCODING does not match"; writer.writeBoolean(true); //true for chunked payloadLengthData[i] = -1; //marked as chunking