public static long readLong(Pipe<MessageSchemaDynamic> p) { return Pipe.takeLong(p); }
public static long readLong(Pipe<MessageSchemaDynamic> p) { return Pipe.takeLong(p); }
public static long readLong(Pipe<MessageSchemaDynamic> p) { return Pipe.takeLong(p); }
@Override public void visitSignedLong(String name, long id, long value) { needsClose = true; if (Pipe.takeLong(expectedInput) != value) { throw new AssertionError(); } }
@Override public void visitSignedLong(String name, long id, long value) { needsClose = true; if (Pipe.takeLong(expectedInput) != value) { throw new AssertionError(); } }
@Override public void visitSignedLong(String name, long id, long value) { needsClose = true; if (Pipe.takeLong(expectedInput) != value) { throw new AssertionError(); } }
public static double readDouble(Pipe<MessageSchemaDynamic> p) { return Double.longBitsToDouble(Pipe.takeLong(p)); }
public static double readDouble(Pipe<MessageSchemaDynamic> p) { return Double.longBitsToDouble(Pipe.takeLong(p)); }
public static double readDouble(Pipe<MessageSchemaDynamic> p) { return Double.longBitsToDouble(Pipe.takeLong(p)); }
@Override public void visitUnsignedLong(String name, long id, long value) { needsClose = true; long temp; if ((temp=Pipe.takeLong(expectedInput)) != value) { throw new AssertionError("expected long: "+Long.toHexString(temp)+" but got "+Long.toHexString(value)); } }
@Override public void visitUnsignedLong(String name, long id, long value) { needsClose = true; long temp; if ((temp=Pipe.takeLong(expectedInput)) != value) { throw new AssertionError("expected long: "+Long.toHexString(temp)+" but got "+Long.toHexString(value)); } }
@Override public void visitUnsignedLong(String name, long id, long value) { needsClose = true; long temp; if ((temp=Pipe.takeLong(expectedInput)) != value) { throw new AssertionError("expected long: "+Long.toHexString(temp)+" but got "+Long.toHexString(value)); } }
private int writePackedFields(int localSum, Pipe<PhastCodecSchema> localInput1, DataOutputBlobWriter<RawDataSchema> localWriter, int msgIdx, int localFieldCount) { int i = localFieldCount; //System.err.println("field count "+i); while (--i >= 0) { packField(localWriter, Pipe.takeLong(localInput1)); } localSum += localFieldCount; return localSum; }
@Override public void visitDecimal(String name, long id, int exp, long mant) { needsClose = true; int tempExp; if ((tempExp = Pipe.takeInt(expectedInput)) != exp) { //TODO; AAAAAAA, decimal support is broken here must fix... // throw new AssertionError("expected integer exponent "+tempExp+" but found "+exp); } long tempMant; if ((tempMant=Pipe.takeLong(expectedInput)) != mant) { // throw new AssertionError("expected long mantissa: "+Long.toHexString(tempMant)+" but got "+Long.toHexString(mant)); } }
@Override public void visitDecimal(String name, long id, int exp, long mant) { needsClose = true; int tempExp; if ((tempExp = Pipe.takeInt(expectedInput)) != exp) { //TODO; AAAAAAA, decimal support is broken here must fix... // throw new AssertionError("expected integer exponent "+tempExp+" but found "+exp); } long tempMant; if ((tempMant=Pipe.takeLong(expectedInput)) != mant) { // throw new AssertionError("expected long mantissa: "+Long.toHexString(tempMant)+" but got "+Long.toHexString(mant)); } }
@Override public void visitDecimal(String name, long id, int exp, long mant) { needsClose = true; int tempExp; if ((tempExp = Pipe.takeInt(expectedInput)) != exp) { //TODO; AAAAAAA, decimal support is broken here must fix... // throw new AssertionError("expected integer exponent "+tempExp+" but found "+exp); } long tempMant; if ((tempMant=Pipe.takeLong(expectedInput)) != mant) { // throw new AssertionError("expected long mantissa: "+Long.toHexString(tempMant)+" but got "+Long.toHexString(mant)); } }
public static <S extends MessageSchema<S>> long readL(Pipe<S> pipe) { int msgIdx = Pipe.takeMsgIdx(pipe); assert(3==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; long value = Pipe.takeLong(pipe); Pipe.confirmLowLevelRead(pipe, 3); Pipe.releaseReadLock(pipe); return value; }
public static <S extends MessageSchema<S>> long readL(Pipe<S> pipe) { int msgIdx = Pipe.takeMsgIdx(pipe); assert(3==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; long value = Pipe.takeLong(pipe); Pipe.confirmLowLevelRead(pipe, 3); Pipe.releaseReadLock(pipe); return value; }
public static <S extends MessageSchema<S>> long readL(Pipe<S> pipe) { int msgIdx = Pipe.takeMsgIdx(pipe); assert(3==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; long value = Pipe.takeLong(pipe); Pipe.confirmLowLevelRead(pipe, 3); Pipe.releaseReadLock(pipe); return value; }
private void logRequestNow(Pipe<HTTPLogRequestSchema> p, Pipe<RawDataSchema> output) { int msgId = Pipe.takeMsgIdx(p); assert(msgId == HTTPLogRequestSchema.MSG_REQUEST_1); long timeNS = Pipe.takeLong(p); //time long chnl = Pipe.takeLong(p); //channelId int seq = Pipe.takeInt(p); //sequenceId DataInputBlobReader<HTTPLogRequestSchema> header = Pipe.openInputStream(p); //head //batch the writes.. int esitmate = 100+header.available(); batchMessages(output, esitmate); publishLogMessage(timeNS, chnl, seq, -1, BYTES_REQUEST, header, Pipe.outputStream(output)); Pipe.confirmLowLevelRead(p, Pipe.sizeOf(p, HTTPLogRequestSchema.MSG_REQUEST_1)); Pipe.releaseReadLock(p); }