System.TermInfo.Database.FindNullTerminator C# (CSharp) 메소드

FindNullTerminator() 개인적인 정적인 메소드

Finds the null-terminator for a string that begins at the specified position.
private static FindNullTerminator ( byte buffer, int pos ) : int
buffer byte
pos int
리턴 int
            private static int FindNullTerminator(byte[] buffer, int pos)
            {
                int termPos = pos;
                while (termPos < buffer.Length && buffer[termPos] != '\0') termPos++;
                return termPos;
            }
        }