@@ -810,7 +810,7 @@ func (o *EndpointInfo) MarshalNDR(ctx context.Context, w ndr.Writer) error {
810810 }
811811 if o .ResourceName [i1 ] != "" {
812812 _ptr_resourceName := ndr .MarshalNDRFunc (func (ctx context.Context , w ndr.Writer ) error {
813- if err := ndr .WriteUTF16String (ctx , w , o .ResourceName [i1 ]); err != nil {
813+ if err := ndr .WriteUTF16NString (ctx , w , o .ResourceName [i1 ]); err != nil {
814814 return err
815815 }
816816 return nil
@@ -858,7 +858,7 @@ func (o *EndpointInfo) MarshalNDR(ctx context.Context, w ndr.Writer) error {
858858 }
859859 if o .AlternateResourceNames [i1 ] != "" {
860860 _ptr_alternateResourceNames := ndr .MarshalNDRFunc (func (ctx context.Context , w ndr.Writer ) error {
861- if err := ndr .WriteUTF16String (ctx , w , o .AlternateResourceNames [i1 ]); err != nil {
861+ if err := ndr .WriteUTF16NString (ctx , w , o .AlternateResourceNames [i1 ]); err != nil {
862862 return err
863863 }
864864 return nil
@@ -922,7 +922,7 @@ func (o *EndpointInfo) UnmarshalNDR(ctx context.Context, w ndr.Reader) error {
922922 for i1 := range o .ResourceName {
923923 i1 := i1
924924 _ptr_resourceName := ndr .UnmarshalNDRFunc (func (ctx context.Context , w ndr.Reader ) error {
925- if err := ndr .ReadUTF16String (ctx , w , & o .ResourceName [i1 ]); err != nil {
925+ if err := ndr .ReadUTF16NString (ctx , w , & o .ResourceName [i1 ]); err != nil {
926926 return err
927927 }
928928 return nil
@@ -961,7 +961,7 @@ func (o *EndpointInfo) UnmarshalNDR(ctx context.Context, w ndr.Reader) error {
961961 for i1 := range o .AlternateResourceNames {
962962 i1 := i1
963963 _ptr_alternateResourceNames := ndr .UnmarshalNDRFunc (func (ctx context.Context , w ndr.Reader ) error {
964- if err := ndr .ReadUTF16String (ctx , w , & o .AlternateResourceNames [i1 ]); err != nil {
964+ if err := ndr .ReadUTF16NString (ctx , w , & o .AlternateResourceNames [i1 ]); err != nil {
965965 return err
966966 }
967967 return nil
0 commit comments