public static byte[] Pack(double content) { var output = new List <byte> { Markers.Floating }; output.AddRange(PackStreamBitConverter.GetBytes(content)); return(output.ToArray()); }
internal static byte[] ConvertLongToBytes(long value) { var output = new List <byte>(PackStreamBitConverter.GetBytes(value)); return(value >= 0 ? ConvertPositiveLongs(output, value) : ConvertNegativeLongs(output, value)); }