S hook diameter is measured on the outside of the wire. The length is measured from one end of the S to the other.
For most fasteners, length is measured from where the material is assumed to be to the tip. Countersunk fasteners are measured overall. Most other fasteners are measured from under the head.