/** * get the input stream associated with this Pipe and open it * @param pipe Pipe target * @return DataInputBlobReader */ public static <S extends MessageSchema<S>> DataInputBlobReader<S> openInputStream(Pipe<S> pipe) { pipe.blobReader.openLowLevelAPIField(); return pipe.blobReader; }
/** * get the input stream associated with this Pipe and open it * @param pipe Pipe target * @return DataInputBlobReader */ public static <S extends MessageSchema<S>> DataInputBlobReader<S> openInputStream(Pipe<S> pipe) { pipe.blobReader.openLowLevelAPIField(); return pipe.blobReader; }
/** * get the input stream associated with this Pipe and open it * @param pipe Pipe target * @return DataInputBlobReader */ public static <S extends MessageSchema<S>> DataInputBlobReader<S> openInputStream(Pipe<S> pipe) { pipe.blobReader.openLowLevelAPIField(); return pipe.blobReader; }
@Deprecated public static <S extends MessageSchema<S>> int openLowLevelAPIField(DataInputBlobReader<S> that) { return that.openLowLevelAPIField(); }
@Deprecated public static <S extends MessageSchema<S>> int openLowLevelAPIField(DataInputBlobReader<S> that) { return that.openLowLevelAPIField(); }
@Deprecated public static <S extends MessageSchema<S>> int openLowLevelAPIField(DataInputBlobReader<S> that) { return that.openLowLevelAPIField(); }
private boolean beginNewRead() { int msgIdx = Pipe.takeMsgIdx(pipe); if (RawDataSchema.MSG_CHUNKEDSTREAM_1 == msgIdx) { totalBytesRead = totalBytesRead+inputStreamFlyweight.openLowLevelAPIField(); hasOpenRead = true; return true; } else { shutdown("EOF Message detected."); } return false; }
private boolean beginNewRead() { int msgIdx = Pipe.takeMsgIdx(pipe); if (RawDataSchema.MSG_CHUNKEDSTREAM_1 == msgIdx) { totalBytesRead = totalBytesRead+inputStreamFlyweight.openLowLevelAPIField(); hasOpenRead = true; return true; } else { shutdown("EOF Message detected."); } return false; }
private boolean beginNewRead() { int msgIdx = Pipe.takeMsgIdx(pipe); if (RawDataSchema.MSG_CHUNKEDSTREAM_1 == msgIdx) { totalBytesRead = totalBytesRead+inputStreamFlyweight.openLowLevelAPIField(); hasOpenRead = true; return true; } else { shutdown("EOF Message detected."); } return false; }
private int writeByteData(int localSum, Pipe<RawDataSchema> localInput2, int roomAvail) { //we were told there was content. assert (Pipe.hasContentToRead(localInput2)); int msgIdx2 = Pipe.takeMsgIdx(localInput2); int length = input2Reader.openLowLevelAPIField(); localSum += (length>>3); writer.writePackedInt(ESCAPE_VALUE); writer.writePackedInt(length); if (length > roomAvail) { DataOutputBlobWriter.writeBytes(writer,input2Reader,roomAvail); } else { DataOutputBlobWriter.writeBytes(writer,input2Reader,length); //only release when we are fully done Pipe.releaseReadLock(localInput2); } Pipe.confirmLowLevelRead(localInput2, Pipe.sizeOf(localInput2, msgIdx2)); return localSum; }
localReader.openLowLevelAPIField();
int len = reader.openLowLevelAPIField(); assert(payloadLen==len || (len==0 && payloadLen==-1));
DataInputBlobReader<?> inputStream = Pipe.inputStream(request); inputStream.openLowLevelAPIField(); //path in the stream or all if this is raw if (Pipe.isForSchema(request, FolderWatchSchema.class)) {
Pipe.confirmLowLevelRead(input, Pipe.sizeOf(input, msgIdx)); if (msgIdx>=0) { reader.openLowLevelAPIField(); if (!reader.hasRemainingBytes()) { Pipe.releaseReadLock(input);
int msgIdx = Pipe.takeMsgIdx(encodedValuesToValidate); assertEquals(RawDataSchema.MSG_CHUNKEDSTREAM_1, msgIdx); reader.openLowLevelAPIField();
decodedReader.openLowLevelAPIField();