Skip to content

Having a problem to use Int64SerDe #311

Answered by jdang67
jdang67 asked this question in Q&A
Discussion options

You must be logged in to vote

@LGouellec,

I have not tried to produce the data again with your new Serde. To make your code work, see the code , I need to make a minor change
otherwise, it throws an exception.

public class BigEndianInt64SerDes : AbstractSerDes<long>
    {
        /// <summary>
        /// Deserialize a record value from a big endian byte array into <see cref="Int64"/> value
        /// </summary>
        /// <param name="data">serialized bytes in big endian.</param>
        /// <param name="context">serialization context</param>
        /// <returns>deserialized <see cref="Int64"/> using data; may be null</returns>
        public override long Deserialize(byte[] data, SerializationContext context)

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@jdang67
Comment options

@LGouellec
Comment options

Comment options

You must be logged in to vote
3 replies
@LGouellec
Comment options

@jdang67
Comment options

@LGouellec
Comment options

Answer selected by jdang67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants