simplifying the implementation of: EncodeFiexed64, EncodeVarint32

any problem, let me know