simplifying the implementation of: EncodeFiexed64, EncodeVarint32