private static String typeCodeToString(byte c) {
    switch (c) {
      case BYTE_CODE:
        return "BYTE_CODE";
      case OBJECT_CODE:
        return "OBJECT_CODE";
      case EMPTY_BYTEARRAY_CODE:
        return "EMPTY_BYTEARRAY_CODE";
      default:
        return "unknown code " + c;
    }
  }
Write the contents of this part to the specified socket channel using the specified byte
buffer. This is only called for parts that will not fit into the commBuffer so they need to be
written directly to the socket. Precondition: buf contains nothing that needs to be sent
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/Part.java