Baconography.NeutralServices.KitaroDB.UsageStatistics.GenerateCombinedSubredditKeyspace C# (CSharp) Method

GenerateCombinedSubredditKeyspace() private method

private GenerateCombinedSubredditKeyspace ( string id, uint links, uint comments ) : byte[]
id string
links uint
comments uint
return byte[]
        private byte[] GenerateCombinedSubredditKeyspace(string id, uint links, uint comments)
        {
            var keyspace = new byte[SubredditKeySpaceSize];

            for (int i = 0; i < SubIdKeySpaceSize && i < id.Length; i++)
                keyspace[i] = (byte)id[i];

            BitConverter.GetBytes(links).CopyTo(keyspace, SubIdKeySpaceSize);
            BitConverter.GetBytes(comments).CopyTo(keyspace, SubIdKeySpaceSize + 4);

            return keyspace;
        }