longType
longType: any = avro.types.LongType.__with({fromBuffer: (buf: any) => {return new Long(buf.readInt32LE(0), buf.readInt32LE(4))//return Long.fromBits(buf.readInt32LE(0), buf.readInt32LE(4))},toBuffer: (n: any) => {//const buf: any = Buffer.alloc(8)const buf: any = new Buffer(8)buf.writeInt32LE(n.getLowBits(), 0)buf.writeInt32LE(n.getHighBits(), 4)return buf},fromJSON: Long.fromValue,toJSON: (n: any) => {return +n},isValid: Long.isLong,compare: (n1: any, n2: any) => {return n1.compare(n2)}})