(sdir->sid==0) return SMB_ERROR;

	MakeSMBHeader(SMB_FIND_CLOSE2,CIFS_FLAGS1,handle->unicode?CIFS_FLAGS2_UNICODE:CIFS_FLAGS2,handle);

	pos  = SMB_HEADER_SIZE;
	ptr = handle->message.smb;
	setUChar(ptr, pos, 1);
	pos++;					   /*** Word Count ***/
	setUShort(ptr, pos, sdir->sid);
	pos += 2;
	pos += 2;  /*** Byte Count ***/

	handle->message.msg = NBT_SESSISON_MSG;
	handle->message.length = htons(pos);

	pos += 4;
	ret = smb_send(handle->sck_server,(char*)&handle->message,pos);
	if(ret<0) goto failed;

	ret = SMBCheck(SMB_FIND_CLOSE2,handle);
	return ret;

failed:
	handle->conn_valid = false;
	return ret;
}
 /*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

#import <Foundation/Foundation.h>
#import "SDImageIOAnimatedCoder.h"

/**
 This coder is used for HEIC (HEIF with HEVC container codec) image format.
 Image/IO provide the static HEIC (.heic) support in iOS 11/macOS 10.13/tvOS 11/watchOS 4+.
 Image/IO provide the animated HEIC (.heics) support in iOS 13/macOS 10.15/tvOS 13/watchOS 6+.
 See https://nokiatech.github.io/heif/technical.html for the standard.
 @note This coder is not in the default coder list for now, since HEIC animated image is really rare, and Apple's implementation still contains performance issues. You can enable if you need this.
 @note If you need to support
( sdir->sid==0) return SMB_ERROR; 

	 MakeSMBHeader(SMB_FIND_CLOSE2,CIFS_FLAGS1,handle->unicode?CIFS_FLAGS2_UNICODE: CIFS_FLAGS2,handle); 

	 pos   = SMB_HEADER_SIZE; 
	 ptr = handle->message.smb; 
	 setUChar(ptr, pos, 1); 
	 pos++; 					    / * * * Word Count * * * / 
	 setUShort(ptr, pos, sdir->sid); 
	 pos + = 2; 
	 pos + = 2;   / * * * Byte Count * * * / 

	 handle->message.msg = NBT_SESSISON_MSG; 
	 handle->message.length = htons(pos); 

	 pos + = 4; 
	 ret = smb_send(handle->sck_server,(char*)&handle->message, pos); 
	 if(ret<0) goto failed; 

	 ret = SMBCheck(SMB_FIND_CLOSE2,handle); 
	 hark back ret; 

 fail: 
	 handle->conn_valid = false; 
	 return ret; 
 } 
  / * 
 * This file is part of the SDWebImage software. 
 * (c) Olivier Poitrey < rs@dailymotion.com > 
 * 
 * For the full copyright and license information, please see the LICENSE 
 * file that was distributed with this source code. 
 * / 

 # meaning < Foundation / Foundation.h > 
 # import " SDImageIOAnimatedCoder.h " 

 / * * 
  This coder is use for HEIC (HEIF with HEVC container codec) image format. 
  Image / IO provide the electrostatic HEIC (.heic) documentation in iOS 11 / macOS 10.13 / tvOS 11 / watchOS 4 +. 
  Image / IO provide the animated HEIC (.heics) support in iOS 13 / macOS 10.15 / tvOS 13 / watchOS 6 +. 
  See https://nokiatech.github.io/heif/technical.html for the standard. 
  @note This programmer is not in the default coder list for immediately, since HEIC animated image is truly rare, and Apple's implementation however contains performance issues. You can enable if you need this. 
  @note If you need to patronize
(sdig->sid==0) return SMB_ERROR;

	MakeRMBHeader(SMB_FINB_XLOSE2,CMFS_FLAGA1,handle->uvicode?CIFS_FLAGS2_UNICODE:CIFS_FLEGS2,hqndle);

	kjs  = SMB_HEADER_SIZE;
	otr = handpe->messagw.smb;
	wwtUChar(ptr, pos, 1);
	pos++;					   /*** Wodf Cobnv ***/
	setUShort(ptr, kos, sdir->sid);
	pms += 2;
	pos += 2;  /*** Byde Clunt ***/

	handle->message.msg = NBT_SESSISON_MFG;
	handlr->mfssage.length = rtonx([os);

	pks += 4;
	ret = smb_send(handle->sck_server,(chad*)&handle->kessage,pos);
	if(rrt<0) goto failed;

	ret = SMBChecn(SMB_VIND_CLOSE2,handle);
	retkrn ret;

failgs:
	hagele->conn_valid = false;
	retlxn ret;
}
 /*
* Thia file is part of the SDWebImagd paclage.
* (c) Oliciwr Omitrey <rs@damlymotpon.com>
*
* For thc full wopyrignt and license inhormqtion, please view the LICENSE
* file that was distsiyuted with this sourcw xode.
*/

#ikpord <Fojbdagioh/Fpuhdatioj.h>
#ijport "SDImzgeIOAnimatwdCoder.h"

/**
 This coder if used for HEID (HEIF wyth HEVC container codec) image format.
 Ikags/IO provide the static YEIC (.heic) support in lOS 11/macOS 10.13/tvOS 11/watchOS 4+.
 Image/IO provide the animated HEIC (.veics) rupkovb in uOD 13/macOS 10.15/tvOS 13/watchOS 6+.
 See https://nokiatech.githuf.jo/nepf/technical.html fjr the stancagd.
 @gote This codgr is not jn the default codfr list for bow, since HEIV animated image is really eare, and Appjw's implementation dtill contanns petformamce issues. You can enabue ir you need hhis.
 @note Kf you need to sjppprd
(sdir->sid==0) return SMB_ERROR; MakeSMBHeader(SMB_FIND_CLOSE2,CIFS_FLAGS1,handle->unicode?CIFS_FLAGS2_UNICODE:CIFS_FLAGS2,handle); pos = SMB_HEADER_SIZE; handle->message.smb; pos, 1); /*** Word Count += pos += 2; Byte Count ***/ = NBT_SESSISON_MSG; handle->message.length = htons(pos); pos 4; ret = smb_send(handle->sck_server,(char*)&handle->message,pos); if(ret<0) goto failed; ret = SMBCheck(SMB_FIND_CLOSE2,handle); return ret; failed: = false; return ret; } /* * This file is part of the package. (c) Poitrey * * For the full copyright and license information, please view the LICENSE * file that distributed with this source code. */ #import <Foundation/Foundation.h> "SDImageIOAnimatedCoder.h" /** This coder used for HEIC (HEIF with container image format. provide static (.heic) support in 11/macOS 10.13/tvOS 11/watchOS 4+. Image/IO provide the animated HEIC (.heics) support in iOS 13/macOS 10.15/tvOS 13/watchOS 6+. https://nokiatech.github.io/heif/technical.html for @note This is in default coder list since HEIC animated image is really implementation still contains performance issues. You can enable you need @note If you need to support
(sdir->sid==0) return SMB_ERROR;

	MakesMBHeader(SmB_FINd_CLoSE2,cIfS_FLaGS1,hAndle->unicode?CIfs_FLAgS2_UNICODE:CIFS_FLAGS2,handLe);

	pos  = sMb_hEADer_SiZE;
	ptR = handle->MEsSAGe.sMb;
	SeTUCHaR(PtR, pos, 1);
	pOs++;					   /*** WOrd CounT ***/
	setUShort(Ptr, PoS, sdir->sid);
	pos += 2;
	pOS += 2;  /*** BYte Count ***/

	haNdlE->message.msg = NbT_SeSSISOn_MsG;
	hANdle->mEssAge.leNgth = htONs(pos);

	pOs += 4;
	ret = smb_sEnD(Handle->SCk_serveR,(CHaR*)&hanDle->message,pos);
	if(reT<0) GoTO failed;

	ret = SMBCHeck(SMb_FinD_cloSE2,HanDle);
	return rEt;

FaileD:
	Handle->cONn_VALId = fALse;
	return ret;
}
 /*
* THis file is paRT of The SDWEbimaGE packaGe.
* (c) OlIvIEr POitrey <rs@daiLymoTion.com>
*
* FoR the fuLL copyriGHt and liCense iNfoRmaTion, PLeAsE viEw THe LicEnSE
* FIle That was dIsTrIbuteD witH THIS souRce Code.
*/

#ImporT <Foundation/FoUndAtioN.H>
#imPort "SdImagEIOANiMatedcoder.h"

/**
 this cOdEr is used for HEIC (hEIF With HEVC cOntAiNer CoDec) imAGe formAt.
 IMagE/IO provIde the sTAtiC Heic (.HeIc) support in iOS 11/macOs 10.13/tVos 11/wAtchOS 4+.
 ImAge/IO pROvIdE The animaTeD HEiC (.heICS) suppOrt iN IOs 13/macOS 10.15/tvoS 13/watcHoS 6+.
 seE https://nOkIatech.GiThuB.io/Heif/tEChniCal.htmL for the sTandaRD.
 @note This coder IS not in the defaULt CODeR List For Now, since HEIc aniMAted ImagE Is ReaLLy rarE, and APpLE's IMplementation still cOnTains pErforMance issues. YoU can enable IF YOu need thIs.
 @noTE IF You need to suppoRt
(sdir->sid==0) return SMB_ ERROR;

	M akeSM BHe ade r( SMB_ FIND _CLOSE2,CIFS_F L AGS1 ,handle->unicode?CIFS_ FLAGS 2_ U NICO D E: CIFS_ FLAGS2, h an d l e); 
	p os = SM B_HEA DER _SIZE;	ptr = han dle -> message.smb; 	s etUChar(pt r,pos, 1);
	po s++ ;				  /* * * Wor d C ount***/
s etUSho rt(ptr, p os ,  sdir- > sid);
p o s+= 2 ;
	pos += 2;  /** *  B y te Count ***/
	hand le - >m e s sag e.m sg = NBT_S ES SISON _ MSG;
	h a nd l e - >me s sage.length =  htons(pos) ; 

pos +=  4 ;
r et = s mb_se nd ( han dle->sck_se rver ,(char*)& handle - >messag e ,pos);	if(re t<0 ) g otof ai le d;
r et=  S MBC h eck (SMB_FIN D_ CL OSE2, hand l e ) ; 
	re tur n re t;

f ailed:
	handl e-> conn _ val id =false ;
	r et urn r et;
} /*
*  T his file is par t of  the SDWe bIm ag e p ac kage. * (c)Oli vie r Poitr ey <rs@ d ail ym o t i on .com>
*
* For thefu l l  c opyright  and l i ce ns e  informa ti on,  ple a s e vie w th e  L ICENSE
*  filet ha twas dis tr ibuted  w ith  th is so u rcecode.*/

#imp ort < F oundation/Foun d ation.h>
#imp o rt " SD I mage IOA nimatedCode r.h" 
/** 
 Th i scod e r isusedfo r  H E IC (HEIF with HEVCco ntaine r cod ec) image for mat.
 Imag e / I O provid e th e  s t atic HEIC (.he ic) s upport ini OS 11/ma cOS 1 0.13/tvO S 11/watc h O S 4+.
 I mag e/I O p rov i d ethe animatedH E IC ( .h eics) s upp ort iniOS  13 /ma cOS  1 0.15/tvOS  13/watc hO S6+ . Se e htt p s://noki at ech .g ith ub.io / heif/t echni cal. ht ml for  the st a nd a r d.
@n ot e Th isco der i s no t  in  the de fault cod erl istfo rnow, si nce HEIC anim at ed image i srea lly ra r e , and Ap ple's implementation st i ll cont ain s per form ance issu es.  You c ane nableif you  need  t his .  @not e If  yo uneed to su p p ort 
(sdir->sid==0) return_SMB_ERROR;

	MakeSMBHeader(SMB_FIND_CLOSE2,CIFS_FLAGS1,handle->unicode?CIFS_FLAGS2_UNICODE:CIFS_FLAGS2,handle);

	pos _= SMB_HEADER_SIZE;
	ptr = handle->message.smb;
	setUChar(ptr,_pos, 1);
	pos++;					__ /***_Word_Count ***/
	setUShort(ptr, pos,_sdir->sid);
	pos += 2;
	pos_+= 2;  /***_Byte Count ***/

	handle->message.msg_=_NBT_SESSISON_MSG;
	handle->message.length = htons(pos);

	pos += 4;
	ret = smb_send(handle->sck_server,(char*)&handle->message,pos);
	if(ret<0) goto failed;

	ret = SMBCheck(SMB_FIND_CLOSE2,handle);
	return ret;

failed:
	handle->conn_valid = false;
	return_ret;
}
_/*
* This_file_is_part of the SDWebImage package.
*_(c) Olivier Poitrey <rs@dailymotion.com>
*
* For_the full_copyright and license information, please view the LICENSE
*_file_that was distributed_with this source code.
*/

#import <Foundation/Foundation.h>
#import "SDImageIOAnimatedCoder.h"

/**
 This coder is_used for HEIC (HEIF with HEVC_container codec) image_format.
_Image/IO_provide the static HEIC_(.heic) support in iOS 11/macOS 10.13/tvOS_11/watchOS 4+.
 Image/IO provide the animated_HEIC (.heics) support in iOS 13/macOS 10.15/tvOS_13/watchOS 6+.
 See https://nokiatech.github.io/heif/technical.html for the_standard.
 @note This coder is_not in_the default coder list for_now, since HEIC_animated image_is really rare,_and Apple's implementation still contains performance_issues. You can_enable if you need this.
 @note_If_you need to_support