Pchp.Core.PhpString.GetLength C# (CSharp) Method

GetLength() private method

private GetLength ( ) : int
return int
        int GetLength()
        {
            var chunks = _chunks;
            if (chunks != null)
            {
                if (chunks.GetType() == typeof(object[]))
                {
                    Debug.Assert(IsArrayOfChunks);

                    // TODO: cache length for current chunks version
                    return ChunkLength((object[])chunks, _chunksCount);
                }
                else
                {
                    return ChunkLength(chunks);
                }
            }

            return 0;
        }