FastQuant.DataSeries.GetBuffer C# (CSharp) Method

GetBuffer() private method

private GetBuffer ( long position ) : byte[]
position long
return byte[]
        private static byte[] GetBuffer(long position)
        {
            using (var mstream = new MemoryStream())
            {
                using (var writer = new BinaryWriter(mstream))
                {
                    writer.Write(position);
                    return mstream.ToArray();
                }
            }
        }