Beispiel #1
0
            public static byte[] Pack(double content)
            {
                var output = new List <byte> {
                    Markers.Floating
                };

                output.AddRange(PackStreamBitConverter.GetBytes(content));
                return(output.ToArray());
            }
Beispiel #2
0
            internal static byte[] ConvertLongToBytes(long value)
            {
                var output = new List <byte>(PackStreamBitConverter.GetBytes(value));

                return(value >= 0 ? ConvertPositiveLongs(output, value) : ConvertNegativeLongs(output, value));
            }