Ar15 pistol

I'm also wondering if I go with a 10.5 would it be better to do a carbine or pistol gas length?