BSPGenerationTools.TarPacker.WriteOctalField C# (CSharp) Method

WriteOctalField() private static method

private static WriteOctalField ( byte hdr, int offset, int maxLen, long val ) : void
hdr byte
offset int
maxLen int
val long
return void
        private static void WriteOctalField(byte[] hdr, int offset, int maxLen, long val)
        {
            string text = Convert.ToString(val, 8);
            if (text.Length < (maxLen - 1))
                text = text.Insert(0, new string('0', maxLen - 1 - text.Length));
            WriteTextField(hdr, offset, maxLen, text);
        }